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

This commit is contained in:
ggurdin 2025-01-23 13:14:20 -05:00 committed by GitHub
parent 723e28a314
commit 41eb666ec6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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#
);