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

main
Alex Hart 2022-12-07 13:37:48 -04:00
rodzic e846b4e20a
commit 2cdb1b8300
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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();