PLT-3462 Add the ability to clear push notifications after channel is viewed (#3834)
* Add the ability to clear push notifications after channel is viewed * Fix race condition between updating the mention count and reading it when sending push notifications
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b0b39ce71c
Коммит
26f96b240d
@@ -660,6 +660,16 @@ func TestUserUnreadCount(t *testing.T) {
|
||||
if badge != 3 {
|
||||
t.Fatal("should have 3 unread messages")
|
||||
}
|
||||
|
||||
badge = (<-store.User().GetUnreadCountForChannel(u2.Id, c1.Id)).Data.(int64)
|
||||
if badge != 1 {
|
||||
t.Fatal("should have 1 unread messages for that channel")
|
||||
}
|
||||
|
||||
badge = (<-store.User().GetUnreadCountForChannel(u2.Id, c2.Id)).Data.(int64)
|
||||
if badge != 2 {
|
||||
t.Fatal("should have 2 unread messages for that channel")
|
||||
}
|
||||
}
|
||||
|
||||
func TestUserStoreUpdateMfaSecret(t *testing.T) {
|
||||
|
||||
Ссылка в новой задаче
Block a user