From 9626500586f6227e2a4a6e4bcbfd81fce6531a4a Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Tue, 15 Aug 2023 15:55:13 +0200 Subject: [PATCH] Fix names on private message page --- .../privatemessage/LemmyPrivateMessageAPI.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/eu/toldi/infinityforlemmy/privatemessage/LemmyPrivateMessageAPI.kt b/app/src/main/kotlin/eu/toldi/infinityforlemmy/privatemessage/LemmyPrivateMessageAPI.kt index da182a8c..65818c93 100644 --- a/app/src/main/kotlin/eu/toldi/infinityforlemmy/privatemessage/LemmyPrivateMessageAPI.kt +++ b/app/src/main/kotlin/eu/toldi/infinityforlemmy/privatemessage/LemmyPrivateMessageAPI.kt @@ -3,6 +3,7 @@ package eu.toldi.infinityforlemmy.privatemessage import eu.toldi.infinityforlemmy.RetrofitHolder import eu.toldi.infinityforlemmy.apis.LemmyAPI import eu.toldi.infinityforlemmy.dto.PrivateMessageReadDTO +import eu.toldi.infinityforlemmy.utils.LemmyUtils import org.json.JSONObject class LemmyPrivateMessageAPI(val retrofitHolder: RetrofitHolder) { @@ -98,10 +99,10 @@ class LemmyPrivateMessageAPI(val retrofitHolder: RetrofitHolder) { updated = privateMessage.optString("updated", ""), creatorName = creator.getString("name"), creatorAvatar = creator.optString("avatar", ""), - creatorQualifiedName = creator.getString("actor_id"), + creatorQualifiedName = LemmyUtils.actorID2FullName(creator.getString("actor_id")), recipientName = recipient.getString("name"), recipientAvatar = recipient.optString("avatar", ""), - recipientQualifiedName = recipient.getString("actor_id") + recipientQualifiedName = LemmyUtils.actorID2FullName(recipient.getString("actor_id")) ) } } \ No newline at end of file