From f5838b21baae8fed048af4e8aa376a00f1c8d50f Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Fri, 27 Jan 2023 10:12:51 +0100 Subject: [PATCH] show message in tile when call uses foci, explaining we can't join --- src/domain/session/room/timeline/tiles/CallTile.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/domain/session/room/timeline/tiles/CallTile.js b/src/domain/session/room/timeline/tiles/CallTile.js index 37be05be..05762bc0 100644 --- a/src/domain/session/room/timeline/tiles/CallTile.js +++ b/src/domain/session/room/timeline/tiles/CallTile.js @@ -118,11 +118,14 @@ export class CallTile extends SimpleTile { } get typeLabel() { + if (this._call && this._call.usesFoci) { + return `This call uses a stream-forwarding unit, which isn't supported yet, so you can't join this call.`; + } if (this.type === CallType.Video) { - return `Video call`; - } else { - return `Voice call`; - } + return `Video call`; + } else { + return `Voice call`; + } } get type() {