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

Commit

Permalink
msc4197 implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ara4n committed Sep 22, 2024
1 parent 2c012f6 commit e042fd9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Notifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,13 @@ class NotifierClass extends TypedEventEmitter<keyof EmittedEvents, EmittedEvents
if (ev.getSender() === MatrixClientPeg.safeGet().getUserId()) return;
if (data.timeline.getTimelineSet().threadListType !== null) return; // Ignore events on the thread list generated timelines

if (data.liveEvent && ev.getContent()['org.matrix.msc4197.copy_hint'] !== undefined) {
Modal.createDialog(ErrorDialog, {
title: "Copy me!",
ev.getContent()['org.matrix.msc4197.copy_hint'],

Check failure on line 418 in src/Notifier.ts

View workflow job for this annotation

GitHub Actions / Typescript Syntax Check

',' expected.
});
}

MatrixClientPeg.safeGet().decryptEventIfNeeded(ev);

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

0 comments on commit e042fd9

Please sign in to comment.