Fix more import/export tests for backups

This commit is contained in:
Fedor Indutny 2024-09-16 17:40:52 -07:00 committed by GitHub
parent 8dabe4fbe4
commit 84c562d0b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 225 additions and 60 deletions

View file

@ -138,7 +138,7 @@ export async function onSync(sync: ViewSyncAttributesType): Promise<void> {
}
const giftBadge = message.get('giftBadge');
if (giftBadge) {
if (giftBadge && giftBadge.state !== GiftBadgeStates.Failed) {
didChangeMessage = true;
message.set({
giftBadge: {