mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-30 10:01:25 +02:00
Add getCanonicalAlias to mock
This commit is contained in:
parent
cf8c98e076
commit
6670c727a4
@ -34,6 +34,7 @@ function mockRoom(roomId, members, serverACL) {
|
||||
|
||||
return {
|
||||
roomId,
|
||||
getCanonicalAlias: () => roomId,
|
||||
getJoinedMembers: () => members,
|
||||
getMember: (userId) => members.find(m => m.userId === userId),
|
||||
currentState: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user