diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2020-09-01 09:37:08 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2020-09-01 09:37:08 +0300 |
commit | 0d5088c2b83fafd9d8da1f1b04936f831ac5ee87 (patch) | |
tree | 3aee11cf619f81b25bc276ea8faddd853fe570c1 /test/web/pleroma_api/controllers/conversation_controller_test.exs | |
parent | e0eb90f62a5c8cc14c8fd7fc82ab54342f6fe209 (diff) | |
download | pleroma-0d5088c2b83fafd9d8da1f1b04936f831ac5ee87.tar.gz pleroma-0d5088c2b83fafd9d8da1f1b04936f831ac5ee87.zip |
remove `unread_conversation_count` from User
Diffstat (limited to 'test/web/pleroma_api/controllers/conversation_controller_test.exs')
-rw-r--r-- | test/web/pleroma_api/controllers/conversation_controller_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/pleroma_api/controllers/conversation_controller_test.exs b/test/web/pleroma_api/controllers/conversation_controller_test.exs index e6d0b3e37..f2feeaaef 100644 --- a/test/web/pleroma_api/controllers/conversation_controller_test.exs +++ b/test/web/pleroma_api/controllers/conversation_controller_test.exs @@ -121,7 +121,7 @@ defmodule Pleroma.Web.PleromaAPI.ConversationControllerTest do [participation2, participation1] = Participation.for_user(other_user) assert Participation.get(participation2.id).read == false assert Participation.get(participation1.id).read == false - assert User.get_cached_by_id(other_user.id).unread_conversation_count == 2 + assert Participation.unread_count(other_user) == 2 [%{"unread" => false}, %{"unread" => false}] = conn @@ -131,6 +131,6 @@ defmodule Pleroma.Web.PleromaAPI.ConversationControllerTest do [participation2, participation1] = Participation.for_user(other_user) assert Participation.get(participation2.id).read == true assert Participation.get(participation1.id).read == true - assert User.get_cached_by_id(other_user.id).unread_conversation_count == 0 + assert Participation.unread_count(other_user) == 0 end end |