Show attachment download progress, new stop button to cancel
Co-authored-by: Jamie Kyle <jamie@signal.org>
This commit is contained in:
parent
025841e5bb
commit
2741fbb5d2
78 changed files with 2192 additions and 562 deletions
|
@ -8,9 +8,14 @@ import * as Errors from '../types/errors';
|
|||
import type { MessageModel } from '../models/messages';
|
||||
|
||||
export async function __DEPRECATED$getMessageById(
|
||||
messageId: string
|
||||
messageId: string,
|
||||
location: string
|
||||
): Promise<MessageModel | undefined> {
|
||||
const message = window.MessageCache.__DEPRECATED$getById(messageId);
|
||||
const innerLocation = `__DEPRECATED$getMessageById/${location}`;
|
||||
const message = window.MessageCache.__DEPRECATED$getById(
|
||||
messageId,
|
||||
innerLocation
|
||||
);
|
||||
if (message) {
|
||||
return message;
|
||||
}
|
||||
|
@ -32,6 +37,6 @@ export async function __DEPRECATED$getMessageById(
|
|||
return window.MessageCache.__DEPRECATED$register(
|
||||
found.id,
|
||||
found,
|
||||
'__DEPRECATED$getMessageById'
|
||||
innerLocation
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue