mirror of
https://github.com/moparisthebest/kaiwa
synced 2025-02-16 07:00:09 -05:00
Fix: No notification for old messages
This commit is contained in:
parent
e312e7bd99
commit
d5886c7507
@ -89,7 +89,8 @@ module.exports = HumanModel.define({
|
||||
message.mentions = this.nick;
|
||||
}
|
||||
|
||||
if (notify && (!this.activeContact || (this.activeContact && !app.state.focused)) && !mine) {
|
||||
var localTime = new Date();
|
||||
if (Math.round((localTime - message.created) / 1000) < 5 && notify && (!this.activeContact || (this.activeContact && !app.state.focused)) && !mine) {
|
||||
this.unreadCount++;
|
||||
if (message.mentions) {
|
||||
app.notifications.create(this.displayName, {
|
||||
|
Loading…
Reference in New Issue
Block a user