]> Untitled Git - lemmy-ui.git/commitdiff
Fix private message reply from inbox. Fixes #40
authorDessalines <tyhou13@gmx.com>
Fri, 25 Sep 2020 16:36:26 +0000 (11:36 -0500)
committerDessalines <tyhou13@gmx.com>
Fri, 25 Sep 2020 16:36:26 +0000 (11:36 -0500)
src/shared/components/private-message.tsx

index 30f74156e74ee7d6d110c6ba95a62772951c5d9a..a0e86a77fa1caaab927f0d930abc7de54412fd48 100644 (file)
@@ -58,7 +58,7 @@ export class PrivateMessage extends Component<
       ? {
           name: message.recipient_name,
           preferred_username: message.recipient_preferred_username,
-          id: message.id,
+          id: message.recipient_id,
           avatar: message.recipient_avatar,
           local: message.recipient_local,
           actor_id: message.recipient_actor_id,
@@ -72,7 +72,7 @@ export class PrivateMessage extends Component<
       : {
           name: message.creator_name,
           preferred_username: message.creator_preferred_username,
-          id: message.id,
+          id: message.creator_id,
           avatar: message.creator_avatar,
           local: message.creator_local,
           actor_id: message.creator_actor_id,