mirror of
https://github.com/status-im/status-go.git
synced 2025-01-31 00:48:01 +00:00
Add group chat messages to notifications
This commit is contained in:
parent
e29cca667a
commit
387eed5c16
@ -108,6 +108,10 @@ func (c *Chat) OneToOne() bool {
|
|||||||
return c.ChatType == ChatTypeOneToOne
|
return c.ChatType == ChatTypeOneToOne
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *Chat) PrivateGroupChat() bool {
|
||||||
|
return c.ChatType == ChatTypePrivateGroupChat
|
||||||
|
}
|
||||||
|
|
||||||
func (c *Chat) CommunityChatID() string {
|
func (c *Chat) CommunityChatID() string {
|
||||||
if c.ChatType != ChatTypeCommunityChat {
|
if c.ChatType != ChatTypeCommunityChat {
|
||||||
return c.ID
|
return c.ID
|
||||||
|
@ -3023,7 +3023,7 @@ func (m *Messenger) handleRetrievedMessages(chatWithMessages map[transport.Filte
|
|||||||
}
|
}
|
||||||
|
|
||||||
func showNotification(publicKey ecdsa.PublicKey, n MessageNotificationBody, responseTo *common.Message) bool {
|
func showNotification(publicKey ecdsa.PublicKey, n MessageNotificationBody, responseTo *common.Message) bool {
|
||||||
if n.Chat != nil && n.Chat.ChatType == ChatTypeOneToOne {
|
if n.Chat != nil && (n.Chat.OneToOne() || n.Chat.PrivateGroupChat()) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user