Commit Graph

15187 Commits

Author SHA1 Message Date
Ilya Laktyushin
809958df3b Update localization 2026-01-28 22:11:45 +04:00
Ilya Laktyushin
a1aa4d9094 Various fixes 2026-01-28 19:05:47 +04:00
Ilya Laktyushin
52a22d8cef Fix faq 2026-01-28 00:23:23 +04:00
Ilya Laktyushin
15ca7254fb Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-01-27 22:24:42 +04:00
Ilya Laktyushin
142d59cf8f Various improvements 2026-01-27 22:24:31 +04:00
Isaac
efe000e9e3 Fix crashes 2026-01-28 01:06:37 +08:00
Isaac
42bf37bbc8 Feature flag 2026-01-27 22:58:16 +08:00
Isaac
ba1068a5ea Fix delete context item 2026-01-27 21:50:59 +08:00
Isaac
0f025f0c55 Fix 2026-01-27 21:20:00 +08:00
Isaac
80c7b7c3f3 Fix 2026-01-27 21:18:48 +08:00
Isaac
13e9940230 Fix build 2026-01-27 21:14:08 +08:00
Isaac
9af8018ac6 Merge commit '8be8491b84b78fab8a21ce274ec4e9a3a5a430ac'
# Conflicts:
#	submodules/TelegramUI/Components/GlassControls/Sources/GlassControlGroup.swift
2026-01-27 21:05:39 +08:00
Isaac
8422b48216 Glass gallery 2026-01-27 21:04:08 +08:00
Ilya Laktyushin
8be8491b84 Various improvements 2026-01-26 02:16:22 +04:00
Ilya Laktyushin
0d12dd29ad Various improvements 2026-01-25 22:17:49 +04:00
Isaac
7f59789ffc Fix more elements 2026-01-25 00:55:04 +08:00
Isaac
ea82a68859 Adjust effect 2026-01-25 00:38:55 +08:00
Isaac
ca6fdc1629 Glass 2026-01-25 00:31:18 +08:00
Isaac
0431273d7f Merge commit '206bb40479eedff57d6a5924b8aa0e09fcdbc5d6' 2026-01-24 00:35:51 +08:00
Isaac
6ad2622b30 Various updates 2026-01-24 00:35:42 +08:00
Ilya Laktyushin
206bb40479 Update API 2026-01-22 21:21:24 +04:00
Isaac
5ac365a601 Connection impl 2026-01-20 23:43:39 +08:00
Isaac
bc6b472960 Temp glass UI 2026-01-20 22:30:38 +08:00
Isaac
0638c08b75 Merge commit '823cd9993ffc52a65deef25d5e7562577b368b50' 2026-01-20 21:35:12 +08:00
Isaac
4f04dc0bb7 Glass 2026-01-20 21:35:04 +08:00
Ilya Laktyushin
823cd9993f Update API [skip ci] 2026-01-20 15:34:55 +04:00
Ilya Laktyushin
7f2eb05339 Update API [skip ci] 2026-01-20 15:21:58 +04:00
Ilya Laktyushin
ea9d8db1d3 Update API [skip ci] 2026-01-20 14:54:15 +04:00
Isaac
f444587197 Generate real API 2026-01-19 14:37:53 +08:00
Isaac
50c5cc9616 Refactor constructor use sites for types 560-579 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 00:40:53 +08:00
Isaac
bb7e1ae300 Refactor constructor use sites for types 540-559 to struct pattern
Migrated Api.phone.*, Api.photos.*, Api.stats.*, Api.premium.* constructors
to use struct-wrapped enum pattern with --struct-count=560.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 00:28:21 +08:00
Isaac
64d8fe6ba0 Refactor constructor use sites for types 520-539 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 00:14:18 +08:00
Isaac
6746305b4b Refactor constructor use sites for types 500-519 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 00:06:07 +08:00
Isaac
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
Isaac
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
Isaac
1f4b520b1b Refactor constructor use sites for types 440-459 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 23:29:12 +08:00
Isaac
81e17da3fb Refactor constructor use sites for types 420-439 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 23:22:34 +08:00
Isaac
b5dc0b2fd9 Refactor constructor use sites for types 400-419 to struct pattern
Refactored Api constructors in authorization and channel-related code:
- authorization, authorizationSignUpRequired, sentCode, sentCodeSuccess,
  sentCodePaymentRequired, sentCodeTypeFirebaseSms, and related types
- channelParticipant, channelParticipants, sendAsPeers, adminLogResults
- chatlistInvite, chatlistInviteAlready, chatlistUpdates, exportedChatlistInvite
- popularAppBots, sponsoredMessageReportResultChooseOption, and others

Fixed variable shadowing issues where 'user' was extracted and then
immediately shadowed by TelegramUser initialization.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 23:15:21 +08:00
Isaac
5e27a39d80 Refactor constructor use sites for types 380-399 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 22:58:30 +08:00
Isaac
55c53717af Refactor constructor use sites for types 360-379 to struct pattern
Migrated 20 types including userProfilePhoto, userStatus*, username, videoSize*,
wallPaper*, webDocument*, webPage*, webViewResultUrl, authorizations,
authorizationForm, autoDownloadSettings, businessChatLinks, chatThemes,
connectedBots, and contentSettings.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 22:45:35 +08:00
Isaac
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
Isaac
8a99f76f93 Refactor constructor use sites for types 320-339 to struct pattern
Migrated constructors: starsSubscription, starsSubscriptionPricing,
starsTopupOption, starsTransaction, starsTransactionPeer,
statsAbsValueAndPrev, statsDateRangeDays, statsGraph, statsGraphAsync,
statsGraphError, statsGroupTopAdmin, statsGroupTopInviter,
statsGroupTopPoster, statsPercentValue, stickerKeyword, stickerPack,
stickerSet, stickerSetCovered, stickerSetFullCovered,
stickerSetMultiCovered, stickerSetNoCovered, storiesStealthMode,
storyAlbum, storyFwdHeader

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 15:06:15 +08:00
Isaac
859f5acea5 Refactor constructor use sites for types 300-319 to struct pattern
Migrated star gift and stars-related constructors including:
- starGift, starGiftUnique (pattern matches)
- starGiftAttribute*, starGiftAuction* constructors
- starsAmount, starsTonAmount, starsGiftOption
- starsGiveawayOption, starsGiveawayWinnersOption
- starsRevenueStatus, starRefProgram, starsRating
- starGiftCollection, starGiftUpgradePrice, starGiftBackground

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 14:54:12 +08:00
Isaac
5712f3061f Refactor constructor use sites for types 280-299 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 14:42:21 +08:00
Isaac
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
Isaac
07313cbb84 Refactor constructor use sites for types 250-259 to struct pattern
Migrates the following constructors to use struct-wrapped associated values:
- postInteractionCountersMessage, postInteractionCountersStory
- premiumGiftCodeOption, premiumSubscriptionOption
- prepaidGiveaway, prepaidStarsGiveaway
- privacyValueAllowChatParticipants, privacyValueAllowUsers
- privacyValueDisallowChatParticipants, privacyValueDisallowUsers
- publicForwardMessage, publicForwardStory
- quickReply
- reactionCustomEmoji, reactionEmoji

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 14:24:53 +08:00
Isaac
90737abf6d Refactor constructor use sites for types 240-249 to struct pattern
Types refactored: phoneCallProtocol, phoneConnection, phoneConnectionWebrtc,
photo, photoEmpty, photoCachedSize, photoPathSize, photoSize, photoSizeEmpty,
photoSizeProgressive, photoStrippedSize, poll, pollAnswer, pollAnswerVoters,
pollResults, popularContact, postAddress

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 02:25:52 +08:00
Isaac
c6b0ef5da3 Refactor constructor use sites for types 220-239 to struct pattern
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 02:08:10 +08:00
Isaac
a3d66c99f0 Refactor constructor use sites for types 220-229 to struct pattern
Constructors refactored:
- passkey, passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow
- pageRelatedArticle, pageTableCell, pageTableRow
- paymentCharge
- paidReactionPrivacyPeer
- paymentFormMethod, paymentRequestedInfo, paymentSavedCredentialsCard

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 01:44:12 +08:00
Isaac
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