mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-20 00:18:45 +01:00
Use system nickname or first name for incoming group calls
This commit is contained in:
@@ -4,7 +4,17 @@
|
||||
import type { ConversationType } from '../state/ducks/conversations';
|
||||
|
||||
export function getParticipantName(
|
||||
participant: Readonly<Pick<ConversationType, 'firstName' | 'title'>>
|
||||
participant: Readonly<
|
||||
Pick<
|
||||
ConversationType,
|
||||
'firstName' | 'systemGivenName' | 'systemNickname' | 'title'
|
||||
>
|
||||
>
|
||||
): string {
|
||||
return participant.firstName || participant.title;
|
||||
return (
|
||||
participant.systemNickname ||
|
||||
participant.systemGivenName ||
|
||||
participant.firstName ||
|
||||
participant.title
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user