Fix spurious "Group Updated" message

Regression introduced in Message factory method refactor (not in the wild).

// FREEBIE
pull/1/head
Michael Kirk 7 years ago
parent fa4c677950
commit bd8e03fe8a

@ -109,6 +109,10 @@ NSString *const kTSOutgoingMessageSentRecipientAll = @"kTSOutgoingMessageSentRec
if (attachmentId) {
[attachmentIds addObject:attachmentId];
}
TSGroupMetaMessage groupMetaMessage =
[thread isKindOfClass:TSGroupThread.class] ? TSGroupMessageDeliver : TSGroupMessageNone;
return [[TSOutgoingMessage alloc] initOutgoingMessageWithTimestamp:[NSDate ows_millisecondTimeStamp]
inThread:thread
messageBody:body
@ -116,7 +120,7 @@ NSString *const kTSOutgoingMessageSentRecipientAll = @"kTSOutgoingMessageSentRec
expiresInSeconds:expiresInSeconds
expireStartedAt:0
isVoiceMessage:NO
groupMetaMessage:TSGroupMessageNone
groupMetaMessage:groupMetaMessage
quotedMessage:quotedMessage];
}

Loading…
Cancel
Save