|
|
@ -658,6 +658,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
DataSource *dataSource = [DataSourceValue
|
|
|
|
DataSource *dataSource = [DataSourceValue
|
|
|
|
dataSourceWithSyncMessageData:[syncContactsMessage
|
|
|
|
dataSourceWithSyncMessageData:[syncContactsMessage
|
|
|
|
buildPlainTextAttachmentDataWithTransaction:transaction]];
|
|
|
|
buildPlainTextAttachmentDataWithTransaction:transaction]];
|
|
|
|
|
|
|
|
[dataSource setShouldDeleteOnDeallocation];
|
|
|
|
[self.messageSender enqueueTemporaryAttachment:dataSource
|
|
|
|
[self.messageSender enqueueTemporaryAttachment:dataSource
|
|
|
|
contentType:OWSMimeTypeApplicationOctetStream
|
|
|
|
contentType:OWSMimeTypeApplicationOctetStream
|
|
|
|
inMessage:syncContactsMessage
|
|
|
|
inMessage:syncContactsMessage
|
|
|
@ -674,6 +675,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
DataSource *dataSource = [DataSourceValue
|
|
|
|
DataSource *dataSource = [DataSourceValue
|
|
|
|
dataSourceWithSyncMessageData:[syncGroupsMessage
|
|
|
|
dataSourceWithSyncMessageData:[syncGroupsMessage
|
|
|
|
buildPlainTextAttachmentDataWithTransaction:transaction]];
|
|
|
|
buildPlainTextAttachmentDataWithTransaction:transaction]];
|
|
|
|
|
|
|
|
[dataSource setShouldDeleteOnDeallocation];
|
|
|
|
[self.messageSender enqueueTemporaryAttachment:dataSource
|
|
|
|
[self.messageSender enqueueTemporaryAttachment:dataSource
|
|
|
|
contentType:OWSMimeTypeApplicationOctetStream
|
|
|
|
contentType:OWSMimeTypeApplicationOctetStream
|
|
|
|
inMessage:syncGroupsMessage
|
|
|
|
inMessage:syncGroupsMessage
|
|
|
@ -825,9 +827,9 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
if (gThread.groupModel.groupImage) {
|
|
|
|
if (gThread.groupModel.groupImage) {
|
|
|
|
NSData *data = UIImagePNGRepresentation(gThread.groupModel.groupImage);
|
|
|
|
NSData *data = UIImagePNGRepresentation(gThread.groupModel.groupImage);
|
|
|
|
DataSource *_Nullable dataSource = [DataSourceValue dataSourceWithData:data fileExtension:@"png"];
|
|
|
|
DataSource *_Nullable dataSource = [DataSourceValue dataSourceWithData:data fileExtension:@"png"];
|
|
|
|
[self.messageSender enqueueAttachment:dataSource
|
|
|
|
[dataSource setShouldDeleteOnDeallocation];
|
|
|
|
|
|
|
|
[self.messageSender enqueueTemporaryAttachment:dataSource
|
|
|
|
contentType:OWSMimeTypeImagePng
|
|
|
|
contentType:OWSMimeTypeImagePng
|
|
|
|
sourceFilename:nil
|
|
|
|
|
|
|
|
inMessage:message
|
|
|
|
inMessage:message
|
|
|
|
success:^{
|
|
|
|
success:^{
|
|
|
|
DDLogDebug(@"%@ Successfully sent group update with avatar", self.logTag);
|
|
|
|
DDLogDebug(@"%@ Successfully sent group update with avatar", self.logTag);
|
|
|
|