Skip to content

Commit

Permalink
[NEW] [Apps] Add new typing bridge method (Typing-Indicator) (#19228)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shiqi Mei committed Oct 26, 2020
1 parent 831ff3e commit f5b3148
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/apps/server/bridges/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,14 @@ export class AppMessageBridge {
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 comments on commit f5b3148

Please sign in to comment.