@@ -128,7 +128,7 @@ func openWebAppImpl(
128128 }
129129
130130 var presentImpl : ( ( ViewController , Any ? ) -> Void ) ?
131- let params = WebAppParameters ( source: . menu, peerId: chatPeer? . id ?? botPeer. id, botId: botPeer. id, botName: botName, botVerified: botVerified, botAddress: botPeer. addressName ?? " " , url: url, queryId: nil , payload: nil , buttonText: buttonText, keepAliveSignal: nil , forceHasSettings: false , fullSize: fullSize, isFullscreen: isFullscreen, appSettings: appSettings)
131+ let params = WebAppParameters ( source: . menu, peerId: chatPeer? . id ?? botPeer. id, botId: botPeer. id, botName: botName, botVerified: botVerified, botAddress: botPeer. addressName ?? " " , appName : nil , url: url, queryId: nil , payload: nil , buttonText: buttonText, keepAliveSignal: nil , forceHasSettings: false , fullSize: fullSize, isFullscreen: isFullscreen, appSettings: appSettings)
132132
133133 let controller = standaloneWebAppController ( context: context, updatedPresentationData: updatedPresentationData, params: params, threadId: threadId, openUrl: { [ weak parentController] url, concealed, forceUpdate, commit in
134134 ChatControllerImpl . botOpenUrl ( context: context, peerId: chatPeer? . id ?? botPeer. id, controller: parentController as? ChatControllerImpl , url: url, concealed: concealed, forceUpdate: forceUpdate, present: { c, a in
@@ -222,7 +222,7 @@ func openWebAppImpl(
222222 } else {
223223 source = url. isEmpty ? . generic : . simple
224224 }
225- let params = WebAppParameters ( source: source, peerId: chatPeer? . id ?? botId, botId: botId, botName: botName, botVerified: botVerified, botAddress: botPeer. addressName ?? " " , url: result. url, queryId: nil , payload: payload, buttonText: buttonText, keepAliveSignal: nil , forceHasSettings: false , fullSize: result. flags. contains ( . fullSize) , isFullscreen: result. flags. contains ( . fullScreen) , appSettings: appSettings)
225+ let params = WebAppParameters ( source: source, peerId: chatPeer? . id ?? botId, botId: botId, botName: botName, botVerified: botVerified, botAddress: botPeer. addressName ?? " " , appName : nil , url: result. url, queryId: nil , payload: payload, buttonText: buttonText, keepAliveSignal: nil , forceHasSettings: false , fullSize: result. flags. contains ( . fullSize) , isFullscreen: result. flags. contains ( . fullScreen) , appSettings: appSettings)
226226 let controller = standaloneWebAppController ( context: context, updatedPresentationData: updatedPresentationData, params: params, threadId: threadId, openUrl: { [ weak parentController] url, concealed, forceUpdate, commit in
227227 ChatControllerImpl . botOpenUrl ( context: context, peerId: chatPeer? . id ?? botId, controller: parentController as? ChatControllerImpl , url: url, concealed: concealed, forceUpdate: forceUpdate, present: { c, a in
228228 presentImpl ? ( c, a)
@@ -268,7 +268,7 @@ func openWebAppImpl(
268268 return
269269 }
270270 var presentImpl : ( ( ViewController , Any ? ) -> Void ) ?
271- let params = WebAppParameters ( source: . button, peerId: chatPeer? . id ?? botPeer. id, botId: botPeer. id, botName: botName, botVerified: botVerified, botAddress: botPeer. addressName ?? " " , url: result. url, queryId: result. queryId, payload: nil , buttonText: buttonText, keepAliveSignal: result. keepAliveSignal, forceHasSettings: false , fullSize: result. flags. contains ( . fullSize) , isFullscreen: result. flags. contains ( . fullScreen) , appSettings: appSettings)
271+ let params = WebAppParameters ( source: . button, peerId: chatPeer? . id ?? botPeer. id, botId: botPeer. id, botName: botName, botVerified: botVerified, botAddress: botPeer. addressName ?? " " , appName : nil , url: result. url, queryId: result. queryId, payload: nil , buttonText: buttonText, keepAliveSignal: result. keepAliveSignal, forceHasSettings: false , fullSize: result. flags. contains ( . fullSize) , isFullscreen: result. flags. contains ( . fullScreen) , appSettings: appSettings)
272272 let controller = standaloneWebAppController ( context: context, updatedPresentationData: updatedPresentationData, params: params, threadId: threadId, openUrl: { [ weak parentController] url, concealed, forceUpdate, commit in
273273 ChatControllerImpl . botOpenUrl ( context: context, peerId: chatPeer? . id ?? botPeer. id, controller: parentController as? ChatControllerImpl , url: url, concealed: concealed, forceUpdate: forceUpdate, present: { c, a in
274274 presentImpl ? ( c, a)
@@ -499,7 +499,7 @@ public extension ChatControllerImpl {
499499 return
500500 }
501501 let context = strongSelf. context
502- let params = WebAppParameters ( source: . generic, peerId: peerId, botId: botPeer. id, botName: botApp. title, botVerified: botPeer. isVerified, botAddress: botPeer. addressName ?? " " , url: result. url, queryId: 0 , payload: payload, buttonText: " " , keepAliveSignal: nil , forceHasSettings: botApp. flags. contains ( . hasSettings) , fullSize: result. flags. contains ( . fullSize) , isFullscreen: result. flags. contains ( . fullScreen) , appSettings: nil )
502+ let params = WebAppParameters ( source: . generic, peerId: peerId, botId: botPeer. id, botName: botApp. title, botVerified: botPeer. isVerified, botAddress: botPeer. addressName ?? " " , appName : botApp . shortName , url: result. url, queryId: 0 , payload: payload, buttonText: " " , keepAliveSignal: nil , forceHasSettings: botApp. flags. contains ( . hasSettings) , fullSize: result. flags. contains ( . fullSize) , isFullscreen: result. flags. contains ( . fullScreen) , appSettings: nil )
503503 var presentImpl : ( ( ViewController , Any ? ) -> Void ) ?
504504 let controller = standaloneWebAppController ( context: strongSelf. context, updatedPresentationData: strongSelf. updatedPresentationData, params: params, threadId: strongSelf. chatLocation. threadId, openUrl: { [ weak self] url, concealed, forceUpdate, commit in
505505 ChatControllerImpl . botOpenUrl ( context: context, peerId: peerId, controller: self , url: url, concealed: concealed, forceUpdate: forceUpdate, present: { c, a in
0 commit comments