mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 12:33:07 +00:00
Merge pull request #279 from thelounge/xpaw/fix-self-unread
Do not count your own messages as unread
This commit is contained in:
commit
d090cafcaa
2 changed files with 5 additions and 1 deletions
|
@ -760,6 +760,10 @@ $(function() {
|
|||
});
|
||||
|
||||
chat.on("msg", ".messages", function(e, target, msg) {
|
||||
if (msg.self) {
|
||||
return;
|
||||
}
|
||||
|
||||
var button = sidebar.find(".chan[data-target='" + target + "']");
|
||||
var isQuery = button.hasClass("query");
|
||||
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);
|
||||
});
|
||||
|
||||
if (chan.id !== client.activeChannel) {
|
||||
if (!self && chan.id !== client.activeChannel) {
|
||||
chan.unread++;
|
||||
|
||||
if (highlight) {
|
||||
|
|
Loading…
Reference in a new issue