diff options
| author | lain <lain@soykaf.club> | 2020-06-03 14:26:50 +0200 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2020-06-03 14:26:50 +0200 |
| commit | 7f5c5b11a5baeddec36ccc01b4954ac8aa9f8590 (patch) | |
| tree | c175d81013de59da38cc8008e7122c4e6adf7304 /test/web/activity_pub/side_effects_test.exs | |
| parent | 8edead7c1dc33457dc30b301b544d71482ef0f28 (diff) | |
| download | pleroma-7f5c5b11a5baeddec36ccc01b4954ac8aa9f8590.tar.gz pleroma-7f5c5b11a5baeddec36ccc01b4954ac8aa9f8590.zip | |
Chats: Remove `unread` from the db, calculate from unseen messages.
Diffstat (limited to 'test/web/activity_pub/side_effects_test.exs')
| -rw-r--r-- | test/web/activity_pub/side_effects_test.exs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/web/activity_pub/side_effects_test.exs b/test/web/activity_pub/side_effects_test.exs index ff6b3ac15..f2fa062b4 100644 --- a/test/web/activity_pub/side_effects_test.exs +++ b/test/web/activity_pub/side_effects_test.exs @@ -346,7 +346,6 @@ defmodule Pleroma.Web.ActivityPub.SideEffectsTest do SideEffects.handle(create_activity, local: false, object_data: chat_message_data) chat = Chat.get(author.id, recipient.ap_id) - assert chat.unread == 0 [cm_ref] = ChatMessageReference.for_chat_query(chat) |> Repo.all() @@ -354,7 +353,6 @@ defmodule Pleroma.Web.ActivityPub.SideEffectsTest do assert cm_ref.seen == true chat = Chat.get(recipient.id, author.ap_id) - assert chat.unread == 1 [cm_ref] = ChatMessageReference.for_chat_query(chat) |> Repo.all() |
