fix(app): show friend nicknames on forward targets (#1692)

This commit is contained in:
Hampus authored and GitHub committed 2026-08-17 12:00:08 +02:00
1 parent c61fd96df6
commit 2269e1899e
1 file changed
+3 -1
@@ -62,7 +62,9 @@ interface ForwardChannelObservationSelection {
function resolveChannelDisplayName(channel: Channel, i18n: I18n): string {
if (channel.type === ChannelTypes.DM) {
const recipient = channel.recipientIds.length > 0 ? Users.getUser(channel.recipientIds[0]) : null;
if (recipient) return recipient.displayName;
if (recipient) {
return Relationships.getRelationship(recipient.id)?.nickname || recipient.displayName;
}
}
if (
channel.type === ChannelTypes.DM_PERSONAL_NOTES ||