|
@@ -1350,7 +1350,6 @@ class ChatViewController: UITableViewController, UITableViewDropDelegate {
|
|
|
let galleryAction = PhotoPickerAlertAction(title: String.localized("gallery"), style: .default, handler: galleryButtonPressed(_:))
|
|
|
let cameraAction = PhotoPickerAlertAction(title: String.localized("camera"), style: .default, handler: cameraButtonPressed(_:))
|
|
|
let documentAction = UIAlertAction(title: String.localized("files"), style: .default, handler: documentActionPressed(_:))
|
|
|
- let webxdcAction = UIAlertAction(title: String.localized("webxdc_apps"), style: .default, handler: webxdcButtonPressed(_:))
|
|
|
let voiceMessageAction = UIAlertAction(title: String.localized("voice_message"), style: .default, handler: voiceMessageButtonPressed(_:))
|
|
|
let isLocationStreaming = dcContext.isSendingLocationsToChat(chatId: chatId)
|
|
|
let locationStreamingAction = UIAlertAction(title: isLocationStreaming ? String.localized("stop_sharing_location") : String.localized("location"),
|
|
@@ -1360,7 +1359,12 @@ class ChatViewController: UITableViewController, UITableViewDropDelegate {
|
|
|
alert.addAction(cameraAction)
|
|
|
alert.addAction(galleryAction)
|
|
|
alert.addAction(documentAction)
|
|
|
- alert.addAction(webxdcAction)
|
|
|
+
|
|
|
+ if dcContext.hasWebxdc(chatId: 0) {
|
|
|
+ let webxdcAction = UIAlertAction(title: String.localized("webxdc_apps"), style: .default, handler: webxdcButtonPressed(_:))
|
|
|
+ alert.addAction(webxdcAction)
|
|
|
+ }
|
|
|
+
|
|
|
alert.addAction(voiceMessageAction)
|
|
|
|
|
|
if let config = dcContext.getConfig("webrtc_instance"), !config.isEmpty {
|