1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Add getMember() to CallFeed

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-04-04 08:33:51 +02:00
parent ff1379fd29
commit e78b415832
2 changed files with 11 additions and 1 deletions

View File

@@ -31,10 +31,20 @@ export class CallFeed extends EventEmitter {
public userId: string,
public type: CallFeedType,
private client: any, // Fix when client is TSified
private roomId: string,
) {
super()
}
/**
* Returns callRoom member
* @returns member of the callRoom
*/
public getMember() {
const callRoom = this.client.getRoom(this.roomId);
return callRoom.getMember(this.userId);
}
/**
* Returns true if CallFeed is local, otherwise returns false
* @returns {boolean} is local?