Add a simple edit dialog for communities

This commit is contained in:
Travis Ralston 2020-08-31 10:52:08 -06:00
parent 133f981fa8
commit fdbaddbace
6 changed files with 255 additions and 1 deletions

View file

@ -71,6 +71,10 @@ export class CommunityPrototypeStore extends AsyncStoreWithClient<IState> {
return profile?.name || communityId;
}
public getCommunityProfile(communityId: string): { name?: string, avatarUrl?: string } {
return FlairStore.getGroupProfileCachedFast(this.matrixClient, communityId);
}
public getGeneralChat(communityId: string): Room {
const rooms = GroupStore.getGroupRooms(communityId)
.map(r => MatrixClientPeg.get().getRoom(r.roomId))