Do not count your own messages as unread
This commit is contained in:
parent
a276e5714a
commit
80ac72709d
@ -760,6 +760,10 @@ $(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
chat.on("msg", ".messages", function(e, target, msg) {
|
chat.on("msg", ".messages", function(e, target, msg) {
|
||||||
|
if (msg.self) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var button = sidebar.find(".chan[data-target='" + target + "']");
|
var button = sidebar.find(".chan[data-target='" + target + "']");
|
||||||
var isQuery = button.hasClass("query");
|
var isQuery = button.hasClass("query");
|
||||||
if (msg.type === "invite" || msg.highlight || isQuery || (options.notifyAllMessages && msg.type === "message")) {
|
if (msg.type === "invite" || msg.highlight || isQuery || (options.notifyAllMessages && msg.type === "message")) {
|
||||||
|
@ -64,7 +64,7 @@ module.exports = function(irc, network) {
|
|||||||
return (w.replace(/^@/, "").toLowerCase().indexOf(irc.user.nick.toLowerCase()) === 0);
|
return (w.replace(/^@/, "").toLowerCase().indexOf(irc.user.nick.toLowerCase()) === 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (chan.id !== client.activeChannel) {
|
if (!self && chan.id !== client.activeChannel) {
|
||||||
chan.unread++;
|
chan.unread++;
|
||||||
|
|
||||||
if (highlight) {
|
if (highlight) {
|
||||||
|
Loading…
Reference in New Issue
Block a user