diff --git a/ts/models/conversations.ts b/ts/models/conversations.ts index 262e6b890b..de64d04972 100644 --- a/ts/models/conversations.ts +++ b/ts/models/conversations.ts @@ -4601,7 +4601,7 @@ export class ConversationModel extends window.Backbone } } - async setProfileAvatar(avatarPath: string): Promise { + async setProfileAvatar(avatarPath: undefined | null | string): Promise { if (!avatarPath) { return; }