74 Commits
Author SHA1 Message Date
isaacandClaude Opus 4.7 3bb22d503c Postbox -> TelegramEngine wave 16a: move EngineMessageHistoryThread to TelegramCore
Promote Postbox's internal MutableMessageHistoryThreadIndexView.Item to a
public top-level type MessageHistoryThreadIndexItem; drop Postbox's empty
EngineMessageHistoryThread namespace class and its nested Item.

MessageHistoryThreadIndexView.items is now [MessageHistoryThreadIndexItem]
directly (no wrap/unwrap step in the init). The two consumer iteration
sites (ChatListNodeLocation.swift, ShareControllerNode.swift) don't need
changes -- they iterate without type annotation and only read fields that
exist on both the old nested Item and the new top-level type.

Collapse TelegramCore's public extension EngineMessageHistoryThread into
a proper class definition:
public final class EngineMessageHistoryThread { class Info { ... } }.

After this, EngineMessageHistoryThread is a pure TelegramCore type --
consumers that only use EngineMessageHistoryThread.Info no longer need
import Postbox for the outer name to resolve.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 21:26:32 +02:00
Isaac 2907ddbe46 Unseen polls 2026-03-27 18:30:01 +08:00
IsaacandClaude Opus 4.5 b1f723fbe8 Refactor constructor use sites for types 480-499 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 23:47:18 +08:00
IsaacandClaude Opus 4.5 5e4cbec07a Refactor constructor use sites for types 460-479 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 23:36:22 +08:00
IsaacandClaude Opus 4.5 9b71eb0f8f Refactor constructor use sites for types 340-359 to struct pattern
Updates TelegramCore to work with --struct-count=360. This batch includes
story types, update types, user types, theme types, and various other
constructors in the 340-359 type range.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 22:21:57 +08:00
IsaacandClaude Opus 4.5 42b89bbb90 Refactor constructor use sites for types 260-279 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 14:34:07 +08:00
IsaacandClaude Opus 4.5 3e5775b48e Refactor constructor use sites for types 210-220 to struct pattern
Types refactored:
- myBoost, nearestDc, notificationSound*, notifyForumTopic, notifyPeer
- outboxReadDate, page, pageBlock*, pageCaption, pageListItem*

Files modified (8):
- ApiUtils/InstantPage.swift (33 constructors)
- ApiUtils/TelegramPeerNotificationSettings.swift (2 constructors)
- ForumChannels.swift (1 constructor)
- State/AccountStateManagementUtils.swift (2 constructors)
- State/ChannelBoost.swift (1 constructor)
- State/UpdatesApiUtils.swift (1 constructor)
- TelegramEngine/Messages/MessageReadStats.swift (1 constructor)
- TelegramEngine/Peers/NotificationExceptionsList.swift (1 constructor)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 01:15:19 +08:00
Isaac 8696bb0c2a Fix constructors 2026-01-16 15:40:50 +08:00
IsaacandClaude Opus 4.5 33a0d9e62c Refactor Api types 120-149 to use struct-wrapped constructors
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 03:00:59 +08:00
IsaacandClaude Opus 4.5 6b2c0f9c53 Refactor constructor use sites for types 100-119 to struct pattern
Migrated 22 constructors: fileHash, folder, folderPeer, forumTopic,
forumTopicDeleted, foundStory, game, geoPoint, geoPointAddress,
globalPrivacySettings, groupCall, groupCallDiscarded, groupCallDonor,
groupCallMessage, groupCallParticipant, groupCallParticipantVideo,
groupCallParticipantVideoSourceGroup, groupCallStreamChannel,
highScore, importedContact, inlineBotSwitchPM, inlineBotWebView

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 02:41:47 +08:00
Isaac f468cea13c Update API 2025-10-15 17:06:40 +08:00
Ilya Laktyushin 7dfd3b1d87 Various improvements 2025-09-26 01:30:15 +04:00
Isaac 3e6c432511 Cherry-pick group call messages 2025-09-12 11:06:40 +02:00
Isaac 1d06c3f058 Bot forums v2 2025-09-05 15:25:50 +02:00
Isaac 826c48a4dc Bot updates 2025-08-15 13:35:06 +02:00
Isaac c42b2bd9c0 Various improvements 2025-06-11 13:37:58 +08:00
Isaac e2bc739c7f Monoforums 2025-05-27 13:13:53 +08:00
Isaac 5cdce4b21a Support monoforum reactions 2025-05-24 22:42:26 +08:00
Isaac 77e21b4047 Monoforums 2025-05-23 18:04:36 +08:00
Isaac 9633013275 Monoforums 2025-05-23 15:56:01 +08:00
Isaac f681453bd0 Update API 2025-05-17 00:34:35 +08:00
Isaac 09c49d47d9 [WIP] Monoforums 2025-05-16 21:03:00 +08:00
Isaac 1a56afcb48 [WIP] Monoforums 2025-05-16 01:02:25 +08:00
Isaac 28f246749f [WIP] Monoforums 2025-05-06 17:00:11 +02:00
Isaac 383ab9e479 Various improvements 2025-03-07 17:52:50 +01:00
Ilya Laktyushin cce393a28a Merge commit 'b909d1bea021e1c9c86626981a189d715dfffad5' 2024-02-06 17:33:38 +04:00
Isaac 51fcc024d6 Various improvements 2024-02-06 00:06:31 +04:00
Isaac 4bd4884887 Saved messages view as chats 2024-01-28 18:59:00 +01:00
Ilya Laktyushin 669151da80 Various improvements 2024-01-26 01:53:43 +04:00
Isaac 6a89f938db [WIP] Saved messages 2024-01-06 00:43:58 +04:00
Isaac 4b16494e20 [WIP] Saved messages 2023-12-28 00:20:23 +04:00
Isaac 5391858644 Add index reset option 2023-12-23 23:12:52 +04:00
Isaac 0ad61d8d63 [WIP] Saved messages 2023-12-23 00:47:22 +04:00
Isaac 628e794bfd Add remote topic search 2023-12-17 22:44:14 +04:00
Isaac b34a495945 [WIP] Saved messages 2023-12-12 14:05:58 +04:00
Ali c45607ffd6 Refactor url handling 2023-10-20 21:51:45 +04:00
Ali 77a5857a25 Sharing refactoring 2023-08-15 23:57:04 +04:00
Ali f3ee06dd32 Stories 2023-07-07 02:03:11 +04:00
Mike Renoir ac995575e7 macos 10.12 2022-11-29 14:53:53 +04:00
Ali e525215e50 Workaround for General topic 2022-11-28 13:00:32 +04:00
Ilya Laktyushin 5d25b32ac4 Various improvements 2022-11-22 02:03:51 +04:00
Ilya Laktyushin 09e79fc38c Merge branches 'master' and 'master' of gitlab.com:peter-iakovlev/telegram-ios 2022-11-18 20:00:22 +04:00
Ilya Laktyushin d1ef404d37 Emoji search improvements 2022-11-18 20:00:13 +04:00
Ali dd37aa9684 Fix general hide/unhide 2022-11-18 19:44:48 +04:00
Ilya Laktyushin 37e752c78f Various forum improvements 2022-11-15 22:29:09 +04:00
Ali c44c842ae3 Fix pinned topics 2022-11-10 02:21:45 +04:00
Ali 45e50a68d7 Topic improvements 2022-11-08 11:14:41 +04:00
Ali 3fde9cf033 Update API 2022-11-05 00:18:06 +04:00
Ali fa95906962 Support multiple pinned threads 2022-11-04 19:15:25 +04:00
Ali f1864a43b9 Topic improvements 2022-11-04 16:55:23 +04:00