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; } }