Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
watchos: display a message if the recent list is empty
paweldomas1bc28e49047d
diff --git a/ios/app/watchos/app/Base.lproj/Interface.storyboard b/ios/app/watchos/app/Base.lproj/Interface.storyboardindex 94cc6be81c..3cdac948cc 100644--- a/ios/app/watchos/app/Base.lproj/Interface.storyboard+++ b/ios/app/watchos/app/Base.lproj/Interface.storyboard@@ -14,6 +14,7 @@<objects><controller title="Meetings" id="AgC-eL-Hgc" customClass="InterfaceController" customModule="JitsiMeetCompanion" customModuleProvider="target"><items>+ <label alignment="left" textAlignment="left" numberOfLines="0" id="OQN-sx-tDt"/><table alignment="left" id="gpO-ql-Xsr"><items><tableRow identifier="MeetingRowType" id="GGl-av-xeJ" customClass="MeetingRowController" customModule="JitsiMeetCompanion_Extension">@@ -39,6 +40,7 @@</table></items><connections>+ <outlet property="infoLabel" destination="OQN-sx-tDt" id="Juv-tb-SNj"/><outlet property="table" destination="gpO-ql-Xsr" id="aVV-iZ-z3l"/></connections></controller>diff --git a/ios/app/watchos/extension/InterfaceController.swift b/ios/app/watchos/extension/InterfaceController.swiftindex 71da1ec65b..b57219cb87 100644--- a/ios/app/watchos/extension/InterfaceController.swift+++ b/ios/app/watchos/extension/InterfaceController.swift@@ -16,17 +16,31 @@*/import WatchKit+import WatchConnectivityimport Foundationclass InterfaceController: WKInterfaceController {+ @IBOutlet var infoLabel: WKInterfaceLabel!@IBOutlet var table: WKInterfaceTable!+ override func didAppear(){+ self.updateUI(ExtensionDelegate.currentJitsiMeetContext)+ }+func updateUI(_ newContext:JitsiMeetContext) {- if let recentURLsArray = newContext.recentURLs {- updateRecents(withRecents: recentURLsArray, currentContext: newContext)- }+ if (newContext.recentURLs == nil || newContext.recentURLs!.count == 0) {+ infoLabel.setText("There are no recent meetings. Please use the app on the phone to start a new call.")++ table.setHidden(true)+ infoLabel.setHidden(false)+ } else {+ updateRecents(withRecents: newContext.recentURLs!, currentContext: newContext)++ table.setHidden(false)+ infoLabel.setHidden(true)+ }}private func updateRecents(withRecents recents: NSArray, currentContext: JitsiMeetContext) {@@ -68,7 +82,7 @@ class InterfaceController: WKInterfaceController {override func contextForSegue(withIdentifier segueIdentifier: String, in table: WKInterfaceTable, rowIndex: Int) -> Any? {let controller = table.rowController(at: rowIndex) as! MeetingRowControllerlet currentContext = ExtensionDelegate.currentJitsiMeetContext-+// Copy the current context and add the joinConferenceURL to trigger the command when the in-call screen is displayedlet actionContext = JitsiMeetContext(jmContext: currentContext)actionContext.joinConferenceURL = controller.roomUrl