Ignore avatar changes

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-08-25 08:59:42 +02:00
parent 08402cca9f
commit 78562685bb
No known key found for this signature in database
GPG key ID: 55C211A1226CB17D

View file

@ -36,6 +36,8 @@ export function shouldCauseReorder(event: MatrixEvent): boolean {
if (type === "im.vector.user_status") return false;
// Ignore display name changes
if (type === EventType.RoomMember && prevContent.displayname !== content.displayname) return false;
// Ignore avatar changes
if (type === EventType.RoomMember && prevContent.avatar_url !== content.avatar_url) return false;
return true;
}