Fix spurious "Group Updated" message

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

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

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

Loading…
Cancel
Save