handleDataMessage: Don't drop messages for empty GroupV1 groups
This commit is contained in:
parent
cf9764c85a
commit
ada70c4895
1 changed files with 3 additions and 0 deletions
|
@ -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
|
// 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
|
// a part of, except for group updates. Because group v1 updates haven't been
|
||||||
// applied by this point.
|
// 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 (
|
if (
|
||||||
type === 'incoming' &&
|
type === 'incoming' &&
|
||||||
!conversation.isPrivate() &&
|
!conversation.isPrivate() &&
|
||||||
!isGroupV2 &&
|
!isGroupV2 &&
|
||||||
!isV1GroupUpdate &&
|
!isV1GroupUpdate &&
|
||||||
|
conversation.get('members') &&
|
||||||
(conversation.get('left') || !conversation.hasMember(ourConversationId))
|
(conversation.get('left') || !conversation.hasMember(ourConversationId))
|
||||||
) {
|
) {
|
||||||
window.log.warn(
|
window.log.warn(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue