Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

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

Hampus2269e1899efe
diff --git a/fluxer_app/src/features/app/components/dialogs/shared/UseForwardChannelObservations.ts b/fluxer_app/src/features/app/components/dialogs/shared/UseForwardChannelObservations.ts
index 92d5c8d1c..09a41c2a3 100644
--- a/fluxer_app/src/features/app/components/dialogs/shared/UseForwardChannelObservations.ts
+++ b/fluxer_app/src/features/app/components/dialogs/shared/UseForwardChannelObservations.ts
@@ -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 ||