Ensure that outgoing gift badges can be Viewed

This commit is contained in:
Scott Nonnenberg 2022-07-12 09:39:18 -07:00 committed by GitHub
parent 14591358f1
commit fc98d54326
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View file

@ -8,7 +8,7 @@ import { Collection, Model } from 'backbone';
import type { MessageModel } from '../models/messages';
import { ReadStatus } from '../messages/MessageReadStatus';
import { markViewed } from '../services/MessageUpdater';
import { isIncoming, isStory } from '../state/selectors/message';
import { isIncoming } from '../state/selectors/message';
import { notificationService } from '../services/notifications';
import * as log from '../logging/log';
import { GiftBadgeStates } from '../components/conversation/Message';
@ -68,10 +68,7 @@ export class ViewSyncs extends Collection {
uuid: item.sourceUuid,
});
return (
(isIncoming(item) || isStory(item)) &&
senderId === sync.get('senderId')
);
return senderId === sync.get('senderId');
});
if (!found) {