Replace mentions with text when forwarding

This commit is contained in:
Scott Nonnenberg 2022-07-21 09:26:11 -07:00 committed by GitHub
parent 1f65a4491f
commit 026f574fdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 39 additions and 4 deletions

View file

@ -7,6 +7,10 @@ import type { AttachmentType } from './Attachment';
import type { EmbeddedContactType } from './EmbeddedContact';
import type { IndexableBoolean, IndexablePresence } from './IndexedDB';
export function getMentionsRegex(): RegExp {
return /\uFFFC/g;
}
export type Message = (
| UserMessage
| VerifiedChangeMessage

View file

@ -127,7 +127,7 @@ export function makeVideoScreenshot({
strictAssert(context, 'Failed to get canvas context');
context.drawImage(video, 0, 0, canvas.width, canvas.height);
video.addEventListener('loadeddata', seek);
video.removeEventListener('loadeddata', seek);
video.removeEventListener('seeked', capture);
try {