|
|
@ -26,6 +26,7 @@ import {
|
|
|
|
import { AttachmentType } from '../../types/Attachment';
|
|
|
|
import { AttachmentType } from '../../types/Attachment';
|
|
|
|
import { CONVERSATION_PRIORITIES, ConversationTypeEnum } from '../../models/types';
|
|
|
|
import { CONVERSATION_PRIORITIES, ConversationTypeEnum } from '../../models/types';
|
|
|
|
import { WithConvoId, WithMessageHash, WithMessageId } from '../../session/types/with';
|
|
|
|
import { WithConvoId, WithMessageHash, WithMessageId } from '../../session/types/with';
|
|
|
|
|
|
|
|
import { cancelUpdatesToDispatch } from '../../models/message';
|
|
|
|
|
|
|
|
|
|
|
|
export type MessageModelPropsWithoutConvoProps = {
|
|
|
|
export type MessageModelPropsWithoutConvoProps = {
|
|
|
|
propsForMessage: PropsForMessageWithoutConvoProps;
|
|
|
|
propsForMessage: PropsForMessageWithoutConvoProps;
|
|
|
@ -543,6 +544,10 @@ function handleMessageExpiredOrDeleted(
|
|
|
|
const messageId = (payload as any).messageId as string | undefined;
|
|
|
|
const messageId = (payload as any).messageId as string | undefined;
|
|
|
|
const messageHash = (payload as any).messageHash as string | undefined;
|
|
|
|
const messageHash = (payload as any).messageHash as string | undefined;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (messageId) {
|
|
|
|
|
|
|
|
cancelUpdatesToDispatch([messageId]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (conversationId === state.selectedConversation) {
|
|
|
|
if (conversationId === state.selectedConversation) {
|
|
|
|
// search if we find this message id.
|
|
|
|
// search if we find this message id.
|
|
|
|
// we might have not loaded yet, so this case might not happen
|
|
|
|
// we might have not loaded yet, so this case might not happen
|
|
|
|