mirror of
https://github.com/status-im/status-go.git
synced 2025-02-18 01:37:22 +00:00
Dont show notification from inactive chats
This commit is contained in:
parent
9241903edb
commit
3e80b1ecaa
@ -18,6 +18,10 @@ type NotificationBody struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func showMessageNotification(publicKey ecdsa.PublicKey, message *common.Message, chat *Chat, responseTo *common.Message) bool {
|
func showMessageNotification(publicKey ecdsa.PublicKey, message *common.Message, chat *Chat, responseTo *common.Message) bool {
|
||||||
|
if chat != nil && !chat.Active {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
if chat != nil && (chat.OneToOne() || chat.PrivateGroupChat()) {
|
if chat != nil && (chat.OneToOne() || chat.PrivateGroupChat()) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user