Improve type for ConversationModel#setProfileAvatar

This commit is contained in:
Evan Hahn 2021-07-01 18:43:58 -05:00 committed by GitHub
parent 622b9df077
commit 75cb7b6b13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4601,7 +4601,7 @@ export class ConversationModel extends window.Backbone
} }
} }
async setProfileAvatar(avatarPath: string): Promise<void> { async setProfileAvatar(avatarPath: undefined | null | string): Promise<void> {
if (!avatarPath) { if (!avatarPath) {
return; return;
} }