Chat Moderation: use explicit sender and recipient fields

This commit is contained in:
Alex Gleason 2020-09-10 01:44:32 -05:00
commit e229536e5c
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
5 changed files with 48 additions and 8 deletions

View file

@ -123,6 +123,9 @@ defmodule Pleroma.Web.AdminAPI.ChatControllerTest do
|> json_response_and_validate_schema(200)
assert result["id"] == to_string(chat.id)
assert %{} = result["sender"]
assert %{} = result["receiver"]
refute result["account"]
end
end
end