Skip to content
Snippets Groups Projects
Commit f64e03c3 authored by Renato Becker's avatar Renato Becker Committed by Rodrigo Nascimento
Browse files

[FIX] Desktop notifications not displayed when agent has not focused the browser (#10221)

* Fix desktop notifications when agent has not focussed the browser.

* Fix trailing spaces.
parent 154fc888
No related branches found
No related tags found
No related merge requests found
......@@ -164,9 +164,8 @@ RocketChat.callbacks.add('afterSaveMessage', function(message, room, userId) {
const pushUsernames = {};
const user = RocketChat.models.Users.findOneById(message.u._id);
const user = (room.t !== 'l') ? RocketChat.models.Users.findOneById(message.u._id) : room.v;
// might be a livechat visitor
if (!user) {
return message;
}
......
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