Skip to content

Commit c1e3121

Browse files
committed
update to 9.6.1
1 parent 89b0e31 commit c1e3121

File tree

317 files changed

+5640
-4686
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

317 files changed

+5640
-4686
lines changed

‎TMessagesProj/jni/tgnet/ConnectionsManager.cpp

+5-16
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,9 @@ void ConnectionsManager::loadConfig() {
405405
auto datacenter = new Datacenter(instanceNum, buffer);
406406
datacenters[datacenter->getDatacenterId()] = datacenter;
407407
if (LOGS_ENABLED) DEBUG_D("datacenter(%p) %u loaded (hasAuthKey = %d, 0x%" PRIx64 ")", datacenter, datacenter->getDatacenterId(), (int) datacenter->hasPermanentAuthKey(), datacenter->getPermanentAuthKeyId());
408+
if (datacenter->isCdnDatacenter && !datacenter->hasPermanentAuthKey()) {
409+
datacenter->clearAuthKey(HandshakeTypePerm);
410+
}
408411
}
409412
}
410413
}
@@ -825,7 +828,7 @@ void ConnectionsManager::onConnectionDataReceived(Connection *connection, Native
825828
delegate->onProxyError(instanceNum);
826829
}
827830
} else if (code == -404 && (datacenter->isCdnDatacenter || PFS_ENABLED)) {
828-
if (!datacenter->isHandshaking(connection->isMediaConnection)) {
831+
if (!datacenter->isHandshaking(connection->isMediaConnection) || datacenter->isCdnDatacenter) {
829832
datacenter->clearAuthKey(connection->isMediaConnection ? HandshakeTypeMediaTemp : HandshakeTypeTemp);
830833
datacenter->beginHandshake(connection->isMediaConnection ? HandshakeTypeMediaTemp : HandshakeTypeTemp, true);
831834
if (LOGS_ENABLED) DEBUG_D("connection(%p, account%u, dc%u, type %d) reset auth key due to -404 error", connection, instanceNum, datacenter->getDatacenterId(), connection->getConnectionType());
@@ -3134,21 +3137,7 @@ void ConnectionsManager::moveToDatacenter(uint32_t datacenterId) {
31343137

31353138
Datacenter *currentDatacenter = getDatacenterWithId(currentDatacenterId);
31363139
clearRequestsForDatacenter(currentDatacenter, HandshakeTypeAll);
3137-
3138-
if (currentUserId) {
3139-
auto request = new TL_auth_exportAuthorization();
3140-
request->dc_id = datacenterId;
3141-
sendRequest(request, [&, datacenterId](TLObject *response, TL_error *error, int32_t networkType, int64_t responseTime, int64_t msgId) {
3142-
if (error == nullptr) {
3143-
movingAuthorization = std::move(((TL_auth_exportedAuthorization *) response)->bytes);
3144-
authorizeOnMovingDatacenter();
3145-
} else {
3146-
moveToDatacenter(datacenterId);
3147-
}
3148-
}, nullptr, RequestFlagWithoutLogin, DEFAULT_DATACENTER_ID, ConnectionTypeGeneric, true);
3149-
} else {
3150-
authorizeOnMovingDatacenter();
3151-
}
3140+
authorizeOnMovingDatacenter();
31523141
}
31533142

31543143
void ConnectionsManager::authorizeOnMovingDatacenter() {

‎TMessagesProj/src/main/assets/arctic.attheme

-34
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
chat_unreadMessagesStartText=-14512671
22
chat_inFileBackgroundSelected=-2823172
3-
chat_editDoneIcon=-15299074
43
radioBackgroundChecked=-14638337
54
dialogTextBlue=-14709290
65
chat_inTextSelectionHighlight=673093357
76
windowBackgroundWhiteBlueIcon=-12149256
87
chat_inSentClockSelected=-7488295
9-
avatar_backgroundActionBarGreen=-1
108
chat_goDownButtonCounterBackground=-13459733
119
dialogCheckboxSquareBackground=-14380561
1210
chats_menuPhone=-1006632961
13-
avatar_actionBarIconOrange=-8684677
1411
chat_outViews=-1258291201
15-
avatar_actionBarSelectorCyan=-8684677
1612
chat_outViaBotNameText=-1
1713
profile_actionPressedBackground=-13924376
1814
location_sendLocationBackground=-11492107
@@ -22,7 +18,6 @@ chats_nameMessage=-13268780
2218
actionBarDefaultArchived=-1
2319
chat_messagePanelShadow=-452984832
2420
chat_inMediaIcon=-1
25-
avatar_subtitleInProfileViolet=-16777216
2621
chat_outAudioSeekbarFill=-1
2722
actionBarWhiteSelector=268435456
2823
location_actionPressedBackground=338794728
@@ -45,11 +40,9 @@ actionBarTabUnactiveText=-7630182
4540
chat_outAudioTitleText=-1
4641
chats_unreadCounter=-16012289
4742
chat_inReplyMediaMessageSelectedText=-7099204
48-
avatar_actionBarSelectorOrange=-8684677
4943
chat_inBubble=-1
5044
chat_emojiPanelNewTrending=-13329680
5145
chat_outSentCheckRead=-939524097
52-
avatar_backgroundActionBarOrange=-1
5346
windowBackgroundWhiteBlackText=-13421773
5447
avatar_backgroundActionBarBlue=-1
5548
dialogTextLink=-14317077
@@ -71,26 +64,20 @@ chat_inContactPhoneText=-6182221
7164
chat_inlineResultIcon=-13328651
7265
chats_draft=-85777850
7366
dialogLineProgress=-14508825
74-
listSelector=1311978291
7567
chat_serviceLink=-1
7668
chat_outPreviewInstantText=-1
7769
chat_inMenuSelected=-6110259
78-
avatar_actionBarSelectorGreen=-8684677
7970
chat_inLoaderSelected=-13394195
8071
chat_outLocationIcon=-452984833
81-
avatar_actionBarIconViolet=-8684677
8272
text_RedBold=-1682082
8373
chat_inBubbleShadow=1981626195
8474
chat_outAudioProgress=-10907938
85-
dialogProgressCircle=-12281108
86-
avatar_subtitleInProfilePink=-16777216
8775
player_progress=-14441474
8876
chat_inReplyLine=-12478487
8977
dialogLineProgressBackground=-3152133
9078
chat_inReplyNameText=-13464859
9179
chat_outAudioPerfomerSelectedText=-1
9280
profile_title=-13224394
93-
avatar_actionBarIconRed=-8684677
9481
chats_onlineCircle=-11810020
9582
chat_outAudioSelectedProgress=-10907938
9683
chat_messageTextOut=-1
@@ -100,13 +87,11 @@ avatar_backgroundSaved=-12208385
10087
returnToCallBackground=-13853967
10188
chat_fieldOverlayText=-15430146
10289
chat_messagePanelSend=-12935426
103-
windowBackgroundWhiteRedText2=-1817262
10490
avatar_backgroundBlue=-11491866
10591
chat_inSentClock=-5195068
10692
chat_botSwitchToInlineText=-13464859
10793
chats_nameMessageArchived=-7237231
10894
chats_tabUnreadUnactiveBackground=-13655305
109-
avatar_subtitleInProfileOrange=-16777216
11095
chat_outSentCheckSelected=-1191182337
11196
chat_inVenueInfoSelectedText=-7099204
11297
dialogTextBlue2=-14772773
@@ -115,10 +100,8 @@ actionBarTabActiveText=-13590803
115100
chat_topPanelMessage=-8354167
116101
calls_callReceivedGreenIcon=-13645978
117102
chats_pinnedOverlay=100663296
118-
chat_emojiPanelBadgeBackground=-12276493
119103
chat_inForwardedNameText=-13464859
120104
chats_sentError=-65536
121-
groupcreate_checkbox=-11415476
122105
chats_actionBackground=-11492107
123106
chat_outContactNameText=-1
124107
chat_TextSelectionCursor=-11424783
@@ -129,10 +112,8 @@ switch2TrackChecked=-11491347
129112
actionBarDefaultSearch=-16777216
130113
contextProgressOuter1=-14114562
131114
contextProgressOuter2=-12213505
132-
avatar_backgroundActionBarPink=-1
133115
chat_attachPollText=-2119680
134116
chat_attachContactText=-2121728
135-
avatar_actionBarIconCyan=-8291461
136117
windowBackgroundWhiteLinkText=-13464859
137118
chat_outVenueInfoText=-1056964609
138119
chat_outContactPhoneText=-1056964609
@@ -151,7 +132,6 @@ actionBarDefaultSearchPlaceholder=-2005173381
151132
chat_outForwardedNameText=-1
152133
dialogRoundCheckBox=-13653259
153134
actionBarTabLine=-13655305
154-
switchThumbChecked=-15299074
155135
chats_nameMessageArchived_threeLines=-7237231
156136
chat_outSiteNameText=-1
157137
chat_outUpCall=-4724737
@@ -162,7 +142,6 @@ dialogRadioBackgroundChecked=-14311696
162142
picker_badge=-13261833
163143
chat_outFileInfoSelectedText=-1056964609
164144
chat_outAudioDurationSelectedText=-1056964609
165-
avatar_actionBarSelectorPink=-8684677
166145
statisticChartLine_lightblue=-10966803
167146
statisticChartLine_blue=-13467675
168147
statisticChartLine_golden=-1853657
@@ -186,7 +165,6 @@ chat_inFileInfoText=-6182221
186165
avatar_subtitleInProfileBlue=-7500403
187166
chat_inPreviewLine=-12739084
188167
profile_creatorIcon=-15626754
189-
avatar_subtitleInProfileGreen=-16777216
190168
profile_actionBackground=-12408586
191169
chats_sentCheck=-13982474
192170
chat_outVoiceSeekbarFill=-1
@@ -197,15 +175,12 @@ chat_inContactBackground=-13393417
197175
chat_outVenueInfoSelectedText=-1056964609
198176
wallpaperFileOffset=-1
199177
chat_outBubbleShadow=868467
200-
chat_outVenueNameText=-11822380
201178
chat_outTextSelectionHighlight=1802747885
202179
chats_verifiedBackground=-12998152
203180
chat_inTimeSelectedText=-7099204
204181
chat_outFileBackgroundSelected=1351271669
205182
chat_outVoiceSeekbarSelected=1895825407
206-
avatar_backgroundActionBarViolet=-1
207183
actionBarDefaultTitle=-13421773
208-
avatar_actionBarIconPink=-8684671
209184
windowBackgroundWhiteBlueButton=-14509832
210185
profile_verifiedCheck=-1
211186
chat_attachLocationText=-12801233
@@ -216,7 +191,6 @@ picker_enabledButton=-14180619
216191
avatar_nameInMessagePink=-3453050
217192
windowBackgroundWhiteGrayText=-7629665
218193
chat_serviceIcon=-1
219-
avatar_actionBarSelectorViolet=-8684677
220194
avatar_nameInMessageBlue=-13464859
221195
actionBarDefault=-1
222196
profile_actionIcon=-1
@@ -230,7 +204,6 @@ chat_replyPanelIcons=-12086038
230204
chat_outSentClockSelected=1895825407
231205
featuredStickers_addedIcon=-13325569
232206
chat_outFileBackground=1351271669
233-
chat_attachSendBackground=-12608006
234207
chat_outBubbleSelected=-13332255
235208
avatar_backgroundInProfileBlue=-13330708
236209
chat_lockIcon=-9211021
@@ -255,7 +228,6 @@ avatar_actionBarIconBlue=-12433070
255228
chat_outTimeText=-1056964609
256229
chat_attachAudioText=-2209977
257230
chat_outBubble=-13332245
258-
avatar_backgroundActionBarCyan=-1
259231
chats_tabUnreadActiveBackground=-13655305
260232
actionBarDefaultArchivedTitle=-13420484
261233
chats_menuTopBackgroundCats=-11299889
@@ -277,18 +249,14 @@ inappPlayerClose=-7563878
277249
chat_outMediaIcon=-13332255
278250
chat_outAudioCacheSeekbar=738197503
279251
chats_sentClock=2066650878
280-
avatar_subtitleInProfileRed=-16777216
281-
avatar_backgroundActionBarRed=-1
282252
dialogFloatingButton=-12081419
283253
chats_archiveBackground=-11294989
284254
chat_inPreviewInstantText=-15299362
285255
chat_outLoaderSelected=-1
286256
chats_archivePinBackground=-4472113
287257
chat_sentError=-65536
288-
avatar_actionBarSelectorRed=-8684677
289258
chat_inAudioDurationSelectedText=-7099204
290259
chat_outAudioSeekbarSelected=1487394047
291-
avatar_actionBarIconGreen=-8291461
292260
chat_outReplyMessageText=-1
293261
chat_recordedVoiceDot=-833978
294262
chat_inVoiceSeekbarFill=-13132817
@@ -308,8 +276,6 @@ chat_outMenu=-1862270977
308276
statisticChartActiveLine=335544320
309277
chats_secretName=-16734706
310278
chat_outReplyMediaMessageSelectedText=-1056964609
311-
avatar_subtitleInProfileCyan=-16777216
312279
chat_serviceText=-1
313280
chats_attachMessage=-13268780
314-
key_changephoneinfo_changeText=-13131798
315281
chat_outSentClock=1895825407

‎TMessagesProj/src/main/assets/bluebubbles.attheme

-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ chat_inLoader=-431707662
146146
chat_outTimeText=-141776195
147147
chat_attachAudioText=-2209977
148148
chat_outBubble=-1641732
149-
chat_attachHideBackground=-4866356
150149
chats_menuItemText=-12632257
151150
chat_outReplyNameText=-14382642
152151
chats_menuTopBackgroundCats=-10906430

0 commit comments

Comments
��(0)