mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 09:25:45 +01:00
if app is not focused and chat message comes in, activate alternatingTitle. closes #620
This commit is contained in:
@@ -224,6 +224,9 @@
|
|||||||
chat.load(modal.attr('UUID'));
|
chat.load(modal.attr('UUID'));
|
||||||
} else {
|
} else {
|
||||||
chat.toggleNew(modal.attr('UUID'), true);
|
chat.toggleNew(modal.attr('UUID'), true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!modal.is(":visible") || !app.isFocused) {
|
||||||
app.alternatingTitle(data.username + ' has messaged you');
|
app.alternatingTitle(data.username + ' has messaged you');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user