feat: exclude pin events from last room event (#1560)

pull/1593/head
ggurdin 9 months ago committed by GitHub
parent 723e28a314
commit 41eb666ec6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -151,7 +151,8 @@ abstract class ClientManager {
shouldReplaceRoomLastEvent: (_, event) {
return event.content.tryGet(ModelKey.transcription) == null &&
!event.type.startsWith("p.") &&
!event.type.startsWith("pangea.");
!event.type.startsWith("pangea.") &&
event.type != EventTypes.RoomPinnedEvents;
},
// Pangea#
);

Loading…
Cancel
Save