Do not include identity message from self in backup.

This commit is contained in:
Cody Henthorne 2025-01-08 11:57:57 -05:00 committed by Greyson Parrelli
parent d8848a2a80
commit e969661699

View file

@ -161,14 +161,17 @@ class ChatItemArchiveExporter(
}
MessageTypes.isIdentityUpdate(record.type) -> {
if (record.fromRecipientId == selfRecipientId.toLong()) continue
builder.updateMessage = simpleUpdate(SimpleChatUpdate.Type.IDENTITY_UPDATE)
}
MessageTypes.isIdentityVerified(record.type) -> {
if (record.fromRecipientId == selfRecipientId.toLong()) continue
builder.updateMessage = simpleUpdate(SimpleChatUpdate.Type.IDENTITY_VERIFIED)
}
MessageTypes.isIdentityDefault(record.type) -> {
if (record.fromRecipientId == selfRecipientId.toLong()) continue
builder.updateMessage = simpleUpdate(SimpleChatUpdate.Type.IDENTITY_DEFAULT)
}