mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-20 08:28:17 +01:00
Use system nickname or first name for incoming group calls
This commit is contained in:
@@ -20,4 +20,25 @@ describe('getParticipantName', () => {
|
||||
|
||||
assert.strictEqual(getParticipantName(participant), 'Foo Bar');
|
||||
});
|
||||
|
||||
it('returns system given name if available', () => {
|
||||
const participant = {
|
||||
firstName: 'Foo',
|
||||
systemGivenName: 'Foo from that party',
|
||||
title: 'Foo Bar',
|
||||
};
|
||||
|
||||
assert.strictEqual(getParticipantName(participant), 'Foo from that party');
|
||||
});
|
||||
|
||||
it('returns system nickname if available', () => {
|
||||
const participant = {
|
||||
firstName: 'Foo',
|
||||
systemGivenName: 'Foo from that party',
|
||||
systemNickname: 'Foo-chan',
|
||||
title: 'Foo Bar',
|
||||
};
|
||||
|
||||
assert.strictEqual(getParticipantName(participant), 'Foo-chan');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user