summaryrefslogtreecommitdiff
path: root/test/conversation
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2019-10-24 09:23:59 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2019-10-24 09:23:59 +0300
commit99cf1ef9be93ebab04d088848804369e6295a76d (patch)
tree94738e2bc0ee642db4abc4e65a9798782de59623 /test/conversation
parentd3fb9e02cc0ce7dc462e587e639e117aaef5fbc5 (diff)
parent17c237ba808d4356bb1e202e459680563b79ef99 (diff)
downloadpleroma-99cf1ef9be93ebab04d088848804369e6295a76d.tar.gz
pleroma-99cf1ef9be93ebab04d088848804369e6295a76d.zip
Merge branch 'develop' into issue/1276
Diffstat (limited to 'test/conversation')
-rw-r--r--test/conversation/participation_test.exs8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/conversation/participation_test.exs b/test/conversation/participation_test.exs
index 64c350904..91867bf70 100644
--- a/test/conversation/participation_test.exs
+++ b/test/conversation/participation_test.exs
@@ -36,8 +36,8 @@ defmodule Pleroma.Conversation.ParticipationTest do
[%{read: true}] = Participation.for_user(user)
[%{read: false} = participation] = Participation.for_user(other_user)
- assert User.get_cached_by_id(user.id).info.unread_conversation_count == 0
- assert User.get_cached_by_id(other_user.id).info.unread_conversation_count == 1
+ assert User.get_cached_by_id(user.id).unread_conversation_count == 0
+ assert User.get_cached_by_id(other_user.id).unread_conversation_count == 1
{:ok, _} =
CommonAPI.post(other_user, %{
@@ -52,8 +52,8 @@ defmodule Pleroma.Conversation.ParticipationTest do
[%{read: false}] = Participation.for_user(user)
[%{read: true}] = Participation.for_user(other_user)
- assert User.get_cached_by_id(user.id).info.unread_conversation_count == 1
- assert User.get_cached_by_id(other_user.id).info.unread_conversation_count == 0
+ assert User.get_cached_by_id(user.id).unread_conversation_count == 1
+ assert User.get_cached_by_id(other_user.id).unread_conversation_count == 0
end
test "for a new conversation, it sets the recipents of the participation" do