File: Fix progress bar when downloading uploaded file (#3632)
This commit is contained in:
parent
cfccc55a7a
commit
418ef49062
@ -10,7 +10,7 @@ import type {
|
||||
import { MAIN_THREAD_ID } from '../../../api/types';
|
||||
|
||||
import { SERVICE_NOTIFICATIONS_USER_ID } from '../../../config';
|
||||
import { pickTruthy, unique } from '../../../util/iteratees';
|
||||
import { omit, pickTruthy, unique } from '../../../util/iteratees';
|
||||
import { areDeepEqual } from '../../../util/areDeepEqual';
|
||||
import { notifyAboutMessage } from '../../../util/notifications';
|
||||
import {
|
||||
@ -265,6 +265,13 @@ addActionHandler('apiUpdate', (global, actions, update): ActionReturnType => {
|
||||
previousLocalId: localId,
|
||||
});
|
||||
|
||||
global = {
|
||||
...global,
|
||||
fileUploads: {
|
||||
byMessageLocalId: omit(global.fileUploads.byMessageLocalId, [localId.toString()]),
|
||||
},
|
||||
};
|
||||
|
||||
const newMessage = selectChatMessage(global, chatId, message.id)!;
|
||||
global = updateChatLastMessage(global, chatId, newMessage);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user