From b86fdd476f51ed4fb0372ddd84297a9926949011 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 24 Jan 2023 12:12:35 +0530 Subject: [PATCH] Add return types --- .../session/toast/BaseToastNotificationViewModel.ts | 2 +- .../session/toast/CallToastNotificationViewModel.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/domain/session/toast/BaseToastNotificationViewModel.ts b/src/domain/session/toast/BaseToastNotificationViewModel.ts index 0ace7fdf..01ec688b 100644 --- a/src/domain/session/toast/BaseToastNotificationViewModel.ts +++ b/src/domain/session/toast/BaseToastNotificationViewModel.ts @@ -28,7 +28,7 @@ export abstract class BaseToastNotificationViewModel { await this.logAndCatch("CallToastNotificationViewModel.join", async (log) => { const stream = await this.platform.mediaDevices.getMediaTracks(false, true); const localMedia = new LocalMedia().withUserMedia(stream); @@ -79,19 +79,19 @@ export class CallToastNotificationViewModel extends BaseToastNotificationViewMod return this.call.members.size; } - get avatarLetter() { + get avatarLetter(): string { return avatarInitials(this.roomName); } - get avatarColorNumber() { + get avatarColorNumber(): number { return getIdentifierColorNumber(this.room.avatarColorId); } - avatarUrl(size: number) { + avatarUrl(size: number): string | undefined { return getAvatarHttpUrl(this.room.avatarUrl, size, this.platform, this.room.mediaRepository); } - get avatarTitle() { + get avatarTitle(): string { return this.roomName; } }