Chats: Add cascading delete on both referenced users.
authorlain <lain@soykaf.club>
Mon, 31 Aug 2020 14:48:17 +0000 (16:48 +0200)
committerlain <lain@soykaf.club>
Mon, 31 Aug 2020 14:48:17 +0000 (16:48 +0200)
commit0b621a834acf751332f4d202bd50d4ff3e789176
tree89fc93191f49d92050102935bf8aad1a7aacfa90
parent0417b2f649172ea300c124159aa86b964e404a0c
Chats: Add cascading delete on both referenced users.

Also remove the now-superfluous join in the chat controller,
which was only used to filter out these cases.
lib/pleroma/web/pleroma_api/controllers/chat_controller.ex
priv/repo/migrations/20200831142509_chat_constraints.exs [new file with mode: 0644]
test/chat_test.exs