fix: correct logic in `IsActivePersonalChat`

fixes: status-im/status-desktop#10030
This commit is contained in:
Patryk Osmaczko 2023-03-28 10:50:28 +02:00 committed by osmaczko
parent e9482e3974
commit 6eb39eca75
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
0.141.3
0.141.4

View File

@ -229,7 +229,7 @@ func (c *Chat) PrivateGroupChat() bool {
}
func (c *Chat) IsActivePersonalChat() bool {
return c.Active && (c.OneToOne() || c.PrivateGroupChat() && c.Public()) && c.CommunityID == ""
return c.Active && (c.OneToOne() || c.PrivateGroupChat() || c.Public()) && c.CommunityID == ""
}
func (c *Chat) CommunityChatID() string {