Fix mark-as-read (POST /api/v1/conversations/:id/read) refreshing updated_at and bringing conversation to the top in the user's direct conversation list
This commit is contained in:
parent
ee0c40831e
commit
0b6d1292d2
3 changed files with 10 additions and 6 deletions
|
|
@ -125,9 +125,10 @@ defmodule Pleroma.Conversation.ParticipationTest do
|
|||
|
||||
test "it marks a participation as read" do
|
||||
participation = insert(:participation, %{read: false})
|
||||
{:ok, participation} = Participation.mark_as_read(participation)
|
||||
{:ok, updated_participation} = Participation.mark_as_read(participation)
|
||||
|
||||
assert participation.read
|
||||
assert updated_participation.read
|
||||
assert updated_participation.updated_at == participation.updated_at
|
||||
end
|
||||
|
||||
test "it marks a participation as unread" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue