Various improvements [skip ci]

This commit is contained in:
Ilya Laktyushin 2025-02-12 22:15:02 +04:00
parent 8c523ec741
commit 2f2a27f0d2
130 changed files with 5126 additions and 1700 deletions

View file

@ -87,34 +87,6 @@ func chatHistoryEntriesForView(
if (associatedData.subject?.isService ?? false) {
} else {
// if case let .peer(peerId) = location, case let cachedData = cachedData as? CachedChannelData, let invitedOn = cachedData?.invitedOn {
// joinMessage = Message(
// stableId: UInt32.max - 1000,
// stableVersion: 0,
// id: MessageId(peerId: peerId, namespace: Namespaces.Message.Local, id: 0),
// globallyUniqueId: nil,
// groupingKey: nil,
// groupInfo: nil,
// threadId: nil,
// timestamp: invitedOn,
// flags: [.Incoming],
// tags: [],
// globalTags: [],
// localTags: [],
// customTags: [],
// forwardInfo: nil,
// author: channelPeer,
// text: "",
// attributes: [],
// media: [TelegramMediaAction(action: .joinedByRequest)],
// peers: SimpleDictionary<PeerId, Peer>(),
// associatedMessages: SimpleDictionary<MessageId, Message>(),
// associatedMessageIds: [],
// associatedMedia: [:],
// associatedThreadInfo: nil,
// associatedStories: [:]
// )
// } else
if let peer = channelPeer as? TelegramChannel, case .broadcast = peer.info, case .member = peer.participationStatus, !peer.flags.contains(.isCreator) {
joinMessage = Message(
stableId: UInt32.max - 1000,