SideEffects / ChatView: Add an unread cache.
authorlain <lain@soykaf.club>
Fri, 5 Jun 2020 10:01:33 +0000 (12:01 +0200)
committerlain <lain@soykaf.club>
Fri, 5 Jun 2020 10:01:33 +0000 (12:01 +0200)
commitcc8a7dc205a4516452c48659e6bf081f3f730496
tree51e8e382cef023acc6500966c48f2c239d21ada3
parentaa2ac76510d95f2412e23f3739e8e1ae4402643f
SideEffects / ChatView: Add an unread cache.

This is to prevent wrong values in the stream.
lib/pleroma/web/activity_pub/side_effects.ex
lib/pleroma/web/pleroma_api/views/chat_view.ex
lib/pleroma/web/streamer/streamer.ex
lib/pleroma/web/views/streamer_view.ex
test/web/pleroma_api/views/chat_view_test.exs