Fix messenger notifications

pull/1/head
yflory 6 years ago
parent 382690e5c8
commit 216c94b1f0

@ -735,7 +735,6 @@ define([
// Handled by .on('remove')
return;
}
console.error(o, n, p);
}).on('remove', ['friends'], function (o, p) {
var curvePublic = p[1];
if (!curvePublic) { return; }

@ -3,11 +3,10 @@ define([
'/customize/messages.js',
'/common/common-util.js',
'/common/common-interface.js',
'/common/common-notifier.js',
'/common/hyperscript.js',
'/bower_components/marked/marked.min.js',
'/common/media-tag.js',
], function ($, Messages, Util, UI, Notifier, h, Marked, MediaTag) {
], function ($, Messages, Util, UI, h, Marked, MediaTag) {
'use strict';
var debug = console.log;
@ -493,9 +492,8 @@ define([
return ($elem[0].scrollHeight - $elem.scrollTop() === $elem.outerHeight());
};
var initializing = true;
messenger.on('message', function (message) {
if (!initializing) { Notifier.notify(); }
common.notify();
var chanId = message.channel;
var chat = getChat(chanId);

Loading…
Cancel
Save