Fix issue where story thumb could show as a chat image preview.

This commit is contained in:
Alex Hart
2022-12-07 13:37:48 -04:00
parent e846b4e20a
commit 2cdb1b8300

View File

@@ -642,7 +642,10 @@ public class AttachmentTable extends DatabaseTable {
dataInfo.file.delete();
} else {
long threadId = SignalDatabase.mms().getThreadIdForMessage(mmsId);
SignalDatabase.threads().updateSnippetUriSilently(threadId, PartAuthority.getAttachmentDataUri(attachmentId));
if (!SignalDatabase.mms().isStory(mmsId)) {
SignalDatabase.threads().updateSnippetUriSilently(threadId, PartAuthority.getAttachmentDataUri(attachmentId));
}
notifyConversationListeners(threadId);
notifyConversationListListeners();