Commit 8aa8b4bd authored by Wilko Manger's avatar Wilko Manger

Fix chats sorted by your own display name change

parent 6a33c170
......@@ -54,7 +54,10 @@ class ChatOverviewBloc {
(await room.timeline.get(upTo: 10, allowRemote: false)).firstWhere(
(event) =>
(event is! MemberChangeEvent ||
event is JoinEvent && event.content.subject.id == _user.id) &&
(event is JoinEvent &&
event is! DisplayNameChangeEvent &&
event is! AvatarChangeEvent &&
event.content.subject.id == _user.id)) &&
event is! RedactionEvent,
orElse: () => null,
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment