Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit e042fd9

Browse files
committed
msc4197 implementation
1 parent 2c012f6 commit e042fd9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Notifier.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,13 @@ class NotifierClass extends TypedEventEmitter<keyof EmittedEvents, EmittedEvents
412412
if (ev.getSender() === MatrixClientPeg.safeGet().getUserId()) return;
413413
if (data.timeline.getTimelineSet().threadListType !== null) return; // Ignore events on the thread list generated timelines
414414

415+
if (data.liveEvent && ev.getContent()['org.matrix.msc4197.copy_hint'] !== undefined) {
416+
Modal.createDialog(ErrorDialog, {
417+
title: "Copy me!",
418+
ev.getContent()['org.matrix.msc4197.copy_hint'],
419+
});
420+
}
421+
415422
MatrixClientPeg.safeGet().decryptEventIfNeeded(ev);
416423

417424
// If it's an encrypted event and the type is still 'm.room.encrypted',

0 commit comments

Comments
 (0)