handleDataMessage: Don't drop messages for empty GroupV1 groups

This commit is contained in:
Scott Nonnenberg 2020-10-06 08:45:01 -07:00 committed by Josh Perez
parent cf9764c85a
commit ada70c4895

View file

@ -2825,11 +2825,14 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
// We drop incoming messages for v1 groups we already know about, which we're not
// a part of, except for group updates. Because group v1 updates haven't been
// applied by this point.
// Note: if we have no information about a group at all, we will accept those
// messages. We detect that via a missing 'members' field.
if (
type === 'incoming' &&
!conversation.isPrivate() &&
!isGroupV2 &&
!isV1GroupUpdate &&
conversation.get('members') &&
(conversation.get('left') || !conversation.hasMember(ourConversationId))
) {
window.log.warn(