mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[WIP] Topics
This commit is contained in:
@@ -9,6 +9,7 @@ import LocalizedPeerData
|
||||
import ContextUI
|
||||
import ChatListUI
|
||||
import TelegramPresentationData
|
||||
import SwiftSignalKit
|
||||
|
||||
struct ChatMessageItemWidthFill {
|
||||
var compactInset: CGFloat
|
||||
@@ -851,7 +852,12 @@ public class ChatMessageItemView: ListViewItemNode, ChatMessageItemNodeProtocol
|
||||
case .setupPoll:
|
||||
break
|
||||
case let .openUserProfile(peerId):
|
||||
item.controllerInteraction.openPeer(peerId, .info, nil, false, nil)
|
||||
let _ = (item.context.engine.data.get(TelegramEngine.EngineData.Item.Peer.Peer(id: peerId))
|
||||
|> deliverOnMainQueue).start(next: { peer in
|
||||
if let peer = peer {
|
||||
item.controllerInteraction.openPeer(peer, .info, nil, false)
|
||||
}
|
||||
})
|
||||
case let .openWebView(url, simple):
|
||||
item.controllerInteraction.openWebView(button.title, url, simple, false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user