mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-05 15:00:30 +03:00
consider membership change with reason change (#1441)
This commit is contained in:
parent
bffd27ae5b
commit
60b5b5d312
4 changed files with 10 additions and 4 deletions
|
|
@ -278,6 +278,10 @@ export const getMemberAvatarMxc = (room: Room, userId: string): string | undefin
|
|||
return member?.getMxcAvatarUrl();
|
||||
};
|
||||
|
||||
export const isMembershipChanged = (mEvent: MatrixEvent): boolean =>
|
||||
mEvent.getContent().membership !== mEvent.getPrevContent().membership ||
|
||||
mEvent.getContent().reason !== mEvent.getPrevContent().reason;
|
||||
|
||||
export const decryptAllTimelineEvent = async (mx: MatrixClient, timeline: EventTimeline) => {
|
||||
const crypto = mx.getCrypto();
|
||||
if (!crypto) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue