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