mirror of
https://github.com/edumeet/edumeet.git
synced 2026-08-01 15:30:21 +00:00
Add notification when files are shared
This commit is contained in:
parent
97a112ed12
commit
b5494798f9
1 changed files with 10 additions and 0 deletions
|
|
@ -1117,6 +1117,16 @@ export default class RoomClient
|
|||
this._dispatch(
|
||||
stateActions.addResponseMessage({ ...chatMessage, peerName }));
|
||||
|
||||
const toolAreaState = this._getState().toolarea;
|
||||
|
||||
// Notify about the new file, unless the chat is open.
|
||||
if (chatMessage.file && !(toolAreaState.toolAreaOpen && toolAreaState.currentToolTab === 'chat'))
|
||||
{
|
||||
this._dispatch(
|
||||
requestActions.notify({ text: `${chatMessage.name} shared a file` })
|
||||
);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue