Allow sharing audio and generic attachments

This commit is contained in:
Nora Trapp 2020-10-14 12:46:00 -07:00 committed by Matthew Chen
parent d825ce4916
commit 5f42fbb3be

View File

@ -1507,9 +1507,10 @@ NSString *NSStringForViewOnceMessageState(ViewOnceMessageState cellType)
case OWSMessageCellType_Unknown:
case OWSMessageCellType_TextOnlyMessage:
case OWSMessageCellType_ContactShare:
return NO;
case OWSMessageCellType_Audio:
case OWSMessageCellType_GenericAttachment:
return NO;
return self.attachmentStream != nil;
case OWSMessageCellType_MediaMessage: {
for (ConversationMediaAlbumItem *mediaAlbumItem in self.mediaAlbumItems) {
if (!mediaAlbumItem.attachmentStream) {