X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/721f8e00b287974d6346e3c62bb8d0d599cc7db3..4470cb88e0556041452719a3b4d7396cb3e3ec4a:/app/views/api/messages/_message.xml.builder diff --git a/app/views/api/messages/_message.xml.builder b/app/views/api/messages/_message.xml.builder index 64ac9e3bc..2ab307f1a 100644 --- a/app/views/api/messages/_message.xml.builder +++ b/app/views/api/messages/_message.xml.builder @@ -8,10 +8,11 @@ attrs = { "body_format" => message.body_format } +attrs["message_read"] = message.message_read if current_user.id == message.to_user_id + if current_user.id == message.from_user_id attrs["deleted"] = !message.from_user_visible elsif current_user.id == message.to_user_id - attrs["message_read"] = message.message_read attrs["deleted"] = !message.to_user_visible end