Respond to CR.
This commit is contained in:
parent
3df2f56fc9
commit
d8872f9e6a
@ -3534,12 +3534,15 @@ typedef enum : NSUInteger {
|
||||
groupAvatarData = UIImagePNGRepresentation(newGroupModel.groupImage);
|
||||
OWSAssertDebug(groupAvatarData.length > 0);
|
||||
}
|
||||
_Nullable id<DataSource> groupAvatarDataSource;
|
||||
if (groupAvatarData.length > 0) {
|
||||
_Nullable id<DataSource> dataSource = [DataSourceValue dataSourceWithData:groupAvatarData fileExtension:@"png"];
|
||||
groupAvatarDataSource = [DataSourceValue dataSourceWithData:groupAvatarData fileExtension:@"png"];
|
||||
}
|
||||
if (groupAvatarDataSource != nil) {
|
||||
// DURABLE CLEANUP - currently one caller uses the completion handler to delete the tappable error message
|
||||
// which causes this code to be called. Once we're more aggressive about durable sending retry,
|
||||
// we could get rid of this "retryable tappable error message".
|
||||
[self.messageSender sendTemporaryAttachment:dataSource
|
||||
[self.messageSender sendTemporaryAttachment:groupAvatarDataSource
|
||||
contentType:OWSMimeTypeImagePng
|
||||
inMessage:message
|
||||
success:^{
|
||||
|
||||
@ -1228,10 +1228,13 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
groupAvatarData = UIImagePNGRepresentation(gThread.groupModel.groupImage);
|
||||
OWSAssertDebug(groupAvatarData.length > 0);
|
||||
}
|
||||
_Nullable id<DataSource> groupAvatarDataSource;
|
||||
if (groupAvatarData.length > 0) {
|
||||
_Nullable id<DataSource> dataSource = [DataSourceValue dataSourceWithData:groupAvatarData fileExtension:@"png"];
|
||||
groupAvatarDataSource = [DataSourceValue dataSourceWithData:groupAvatarData fileExtension:@"png"];
|
||||
}
|
||||
if (groupAvatarDataSource != nil) {
|
||||
[self.messageSenderJobQueue addMediaMessage:message
|
||||
dataSource:dataSource
|
||||
dataSource:groupAvatarDataSource
|
||||
contentType:OWSMimeTypeImagePng
|
||||
sourceFilename:nil
|
||||
caption:nil
|
||||
|
||||
Loading…
Reference in New Issue
Block a user