1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-09-04 19:42:11 +03:00
Commit Graph

2 Commits

Author SHA1 Message Date
Kegan Dougal
2f9958cca9 JSDoc linkify 2015-10-19 14:37:17 +01:00
Kegan Dougal
f26154d0ac Add support for m.room.avatar: refactor avatar URLs
BREAKING CHANGE.

Scope each "getAvatarUrl" to be instance methods on the entity it
relates to (Room and RoomMember respectively). By doing this, we
can actually pull out specific state such as the `m.room.avatar`
event more easily rather than keeping it in the global cesspit
of `MatrixClient`.

This was complicated by `getHttpUriForMxc` and `getIdenticonUri`
which were attached to the HTTP API to pull out the `baseUrl` when
crafting the URL. Pull out this dependency out and explicitly pass
it in when crafting the URL. This is trivial to get from
`MatrixClient.getHomeserverUrl()`.
2015-10-19 14:14:34 +01:00