From 75cb7b6b13db3af3d2f543c9fc753a0cf9847834 Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Thu, 1 Jul 2021 18:43:58 -0500 Subject: [PATCH] Improve type for ConversationModel#setProfileAvatar --- ts/models/conversations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }