Chats: Remove `unread` from the db, calculate from unseen messages.
authorlain <lain@soykaf.club>
Wed, 3 Jun 2020 12:26:50 +0000 (14:26 +0200)
committerlain <lain@soykaf.club>
Wed, 3 Jun 2020 12:26:50 +0000 (14:26 +0200)
commit7f5c5b11a5baeddec36ccc01b4954ac8aa9f8590
treec175d81013de59da38cc8008e7122c4e6adf7304
parent8edead7c1dc33457dc30b301b544d71482ef0f28
Chats: Remove `unread` from the db, calculate from unseen messages.
lib/pleroma/chat.ex
lib/pleroma/chat_message_reference.ex
lib/pleroma/web/activity_pub/side_effects.ex
lib/pleroma/web/pleroma_api/controllers/chat_controller.ex
lib/pleroma/web/pleroma_api/views/chat_view.ex
priv/repo/migrations/20200603120448_remove_unread_from_chats.exs [new file with mode: 0644]
test/chat_test.exs
test/web/activity_pub/side_effects_test.exs
test/web/pleroma_api/controllers/chat_controller_test.exs