Skip to content
Snippets Groups Projects
Unverified Commit f5b31482 authored by Shiqi Mei's avatar Shiqi Mei Committed by GitHub
Browse files

[NEW] [Apps] Add new typing bridge method (Typing-Indicator) (#19228)

parent 831ff3eb
No related merge requests found
...@@ -83,4 +83,14 @@ export class AppMessageBridge { ...@@ -83,4 +83,14 @@ export class AppMessageBridge {
Notifications.notifyUser(_id, 'message', rmsg), Notifications.notifyUser(_id, 'message', rmsg),
); );
} }
async typing({ scope, id, username, isTyping }) {
switch (scope) {
case 'room':
Notifications.notifyRoom(id, 'typing', username, isTyping);
return;
default:
throw new Error('Unrecognized typing scope provided');
}
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment