Skip to content

Commit 9f3ca6c

Browse files
author
MritunjayTiwari14
committed
compose: Add start video call button in compose
Fetch API from zulip server client for jitsi server url and client video chat service to determine the service used by organization, added logic for button
1 parent 3d3b1c1 commit 9f3ca6c

23 files changed

+139
-0
lines changed

assets/icons/ZulipIcons.ttf

136 Bytes
Binary file not shown.

assets/icons/video.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/l10n/app_en.arb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,10 @@
570570
"@composeBoxAttachFromCameraTooltip": {
571571
"description": "Tooltip for compose box icon to attach an image from the camera to the message."
572572
},
573+
"composeBoxAttachFromVideoCallTooltip": "Join video call.",
574+
"@composeBoxAttachFromVideoCallTooltip": {
575+
"description": "Tooltip for compose box icon to attach a video call url from the jitsi to the message."
576+
},
573577
"composeBoxGenericContentHint": "Type a message",
574578
"@composeBoxGenericContentHint": {
575579
"description": "Hint text for content input when sending a message."

lib/api/model/initial_snapshot.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ class InitialSnapshot {
108108
final bool realmEnableReadReceipts;
109109

110110
final Uri realmIconUrl;
111+
112+
final String? realmJitsiServerUrl;
113+
114+
final int realmVideoChatProvider;
111115

112116
final bool realmPresenceDisabled;
113117

@@ -196,6 +200,8 @@ class InitialSnapshot {
196200
required this.realmUsers,
197201
required this.realmNonActiveUsers,
198202
required this.crossRealmBots,
203+
required this.realmJitsiServerUrl,
204+
required this.realmVideoChatProvider,
199205
});
200206

201207
factory InitialSnapshot.fromJson(Map<String, dynamic> json) =>

lib/api/model/initial_snapshot.g.dart

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/generated/l10n/zulip_localizations.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,12 @@ abstract class ZulipLocalizations {
913913
/// **'Take a photo'**
914914
String get composeBoxAttachFromCameraTooltip;
915915

916+
/// Tooltip for compose box icon to attach a video call url from the jitsi to the message.
917+
///
918+
/// In en, this message translates to:
919+
/// **'Join video call.'**
920+
String get composeBoxAttachFromVideoCallTooltip;
921+
916922
/// Hint text for content input when sending a message.
917923
///
918924
/// In en, this message translates to:

lib/generated/l10n/zulip_localizations_ar.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,9 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
481481
@override
482482
String get composeBoxAttachFromCameraTooltip => 'Take a photo';
483483

484+
@override
485+
String get composeBoxAttachFromVideoCallTooltip => 'Join video call.';
486+
484487
@override
485488
String get composeBoxGenericContentHint => 'Type a message';
486489

lib/generated/l10n/zulip_localizations_de.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,9 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
497497
@override
498498
String get composeBoxAttachFromCameraTooltip => 'Ein Foto aufnehmen';
499499

500+
@override
501+
String get composeBoxAttachFromVideoCallTooltip => 'Join video call.';
502+
500503
@override
501504
String get composeBoxGenericContentHint => 'Eine Nachricht eingeben';
502505

lib/generated/l10n/zulip_localizations_en.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,9 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
481481
@override
482482
String get composeBoxAttachFromCameraTooltip => 'Take a photo';
483483

484+
@override
485+
String get composeBoxAttachFromVideoCallTooltip => 'Join video call.';
486+
484487
@override
485488
String get composeBoxGenericContentHint => 'Type a message';
486489

lib/generated/l10n/zulip_localizations_fr.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,9 @@ class ZulipLocalizationsFr extends ZulipLocalizations {
495495
@override
496496
String get composeBoxAttachFromCameraTooltip => 'Take a photo';
497497

498+
@override
499+
String get composeBoxAttachFromVideoCallTooltip => 'Join video call.';
500+
498501
@override
499502
String get composeBoxGenericContentHint => 'Type a message';
500503

0 commit comments

Comments
 (0)