@@ -202,19 +202,29 @@ public final class ChatPeekTimeout {
202
202
203
203
public final class ChatPeerNearbyData : Equatable {
204
204
public static func == ( lhs: ChatPeerNearbyData , rhs: ChatPeerNearbyData ) -> Bool {
205
+ return lhs. distance == rhs. distance
206
+ }
207
+
208
+ public let distance : Int32
209
+
210
+ public init ( distance: Int32 ) {
211
+ self . distance = distance
212
+ }
213
+ }
214
+
215
+ public final class ChatGreetingData : Equatable {
216
+ public static func == ( lhs: ChatGreetingData , rhs: ChatGreetingData ) -> Bool {
205
217
if let lhsSticker = lhs. sticker, let rhsSticker = rhs. sticker, !lhsSticker. isEqual ( to: rhsSticker) {
206
218
return false
207
219
} else if ( lhs. sticker == nil ) != ( rhs. sticker == nil ) {
208
220
return false
209
221
}
210
- return lhs . distance == rhs . distance
222
+ return true
211
223
}
212
224
213
- public let distance : Int32
214
225
public let sticker : TelegramMediaFile ?
215
226
216
- public init ( distance: Int32 , sticker: TelegramMediaFile ? ) {
217
- self . distance = distance
227
+ public init ( sticker: TelegramMediaFile ? ) {
218
228
self . sticker = sticker
219
229
}
220
230
}
@@ -270,12 +280,13 @@ public final class NavigateToChatControllerParams {
270
280
public let activateMessageSearch : ( ChatSearchDomain , String ) ?
271
281
public let peekData : ChatPeekTimeout ?
272
282
public let peerNearbyData : ChatPeerNearbyData ?
283
+ public let greetingData : ChatGreetingData ?
273
284
public let animated : Bool
274
285
public let options : NavigationAnimationOptions
275
286
public let parentGroupId : PeerGroupId ?
276
287
public let completion : ( ChatController ) -> Void
277
288
278
- public init ( navigationController: NavigationController , chatController: ChatController ? = nil , context: AccountContext , chatLocation: ChatLocation , chatLocationContextHolder: Atomic < ChatLocationContextHolder ? > = Atomic < ChatLocationContextHolder ? > ( value: nil ) , subject: ChatControllerSubject ? = nil , botStart: ChatControllerInitialBotStart ? = nil , updateTextInputState: ChatTextInputState ? = nil , activateInput: Bool = false , keepStack: NavigateToChatKeepStack = . default, useExisting: Bool = true , purposefulAction: ( ( ) -> Void ) ? = nil , scrollToEndIfExists: Bool = false , activateMessageSearch: ( ChatSearchDomain , String ) ? = nil , peekData: ChatPeekTimeout ? = nil , peerNearbyData: ChatPeerNearbyData ? = nil , animated: Bool = true , options: NavigationAnimationOptions = [ ] , parentGroupId: PeerGroupId ? = nil , completion: @escaping ( ChatController ) -> Void = { _ in } ) {
289
+ public init ( navigationController: NavigationController , chatController: ChatController ? = nil , context: AccountContext , chatLocation: ChatLocation , chatLocationContextHolder: Atomic < ChatLocationContextHolder ? > = Atomic < ChatLocationContextHolder ? > ( value: nil ) , subject: ChatControllerSubject ? = nil , botStart: ChatControllerInitialBotStart ? = nil , updateTextInputState: ChatTextInputState ? = nil , activateInput: Bool = false , keepStack: NavigateToChatKeepStack = . default, useExisting: Bool = true , purposefulAction: ( ( ) -> Void ) ? = nil , scrollToEndIfExists: Bool = false , activateMessageSearch: ( ChatSearchDomain , String ) ? = nil , peekData: ChatPeekTimeout ? = nil , peerNearbyData: ChatPeerNearbyData ? = nil , greetingData : ChatGreetingData ? = nil , animated: Bool = true , options: NavigationAnimationOptions = [ ] , parentGroupId: PeerGroupId ? = nil , completion: @escaping ( ChatController ) -> Void = { _ in } ) {
279
290
self . navigationController = navigationController
280
291
self . chatController = chatController
281
292
self . chatLocationContextHolder = chatLocationContextHolder
@@ -292,6 +303,7 @@ public final class NavigateToChatControllerParams {
292
303
self . activateMessageSearch = activateMessageSearch
293
304
self . peekData = peekData
294
305
self . peerNearbyData = peerNearbyData
306
+ self . greetingData = greetingData
295
307
self . animated = animated
296
308
self . options = options
297
309
self . parentGroupId = parentGroupId
0 commit comments