Skip to content

Commit

Permalink
update to 9.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xaxtix committed Feb 3, 2023
1 parent 2628a58 commit 135e3cc
Show file tree
Hide file tree
Showing 433 changed files with 21,935 additions and 6,758 deletions.
1 change: 1 addition & 0 deletions TMessagesProj/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ dependencies {
implementation 'com.google.android.gms:play-services-wearable:18.0.0'
implementation 'com.google.android.gms:play-services-location:21.0.1'
implementation 'com.google.android.gms:play-services-wallet:19.1.0'
implementation 'com.google.android.gms:play-services-safetynet:18.0.1'
implementation 'com.googlecode.mp4parser:isoparser:1.0.6'
implementation 'com.stripe:stripe-android:2.0.2'
implementation 'com.google.mlkit:language-id:16.1.1'
Expand Down
1 change: 0 additions & 1 deletion TMessagesProj/config/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<permission android:name="${applicationId}.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>

<application
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="@string/AppNameBeta"
Expand Down
1 change: 0 additions & 1 deletion TMessagesProj/config/debug/AndroidManifest_SDK23.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@


<application
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="@string/AppNameBeta"
Expand Down
1 change: 0 additions & 1 deletion TMessagesProj/config/release/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<permission android:name="${applicationId}.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>

<application
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="@string/AppName"
Expand Down
1 change: 0 additions & 1 deletion TMessagesProj/config/release/AndroidManifest_SDK23.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<permission android:name="${applicationId}.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>

<application
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="@string/AppName"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<permission android:name="${applicationId}.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>

<application
android:allowBackup="false"
android:icon="@mipmap/ic_launcher_sa"
android:roundIcon="@mipmap/ic_launcher_sa"
android:label="@string/AppName"
Expand Down
8 changes: 7 additions & 1 deletion TMessagesProj/jni/tgnet/ApiScheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ auth_Authorization *auth_Authorization::TLdeserialize(NativeByteBuffer *stream,
case 0x44747e9a:
result = new TL_auth_authorizationSignUpRequired();
break;
case 0x33fb7bb8:
case 0x2ea2c0d4:
result = new TL_auth_authorization();
break;
default:
Expand Down Expand Up @@ -1086,9 +1086,15 @@ void TL_auth_authorizationSignUpRequired::serializeToStream(NativeByteBuffer *st

void TL_auth_authorization::readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error) {
flags = stream->readInt32(&error);
if ((flags & 2) != 0) {
otherwise_relogin_days = stream->readInt32(&error);
}
if ((flags & 1) != 0) {
tmp_sessions = stream->readInt32(&error);
}
if ((flags & 4) != 0) {
future_auth_token = std::unique_ptr<ByteArray>(stream->readByteArray(&error));
}
user = std::unique_ptr<User>(User::TLdeserialize(stream, stream->readUint32(&error), instanceNum, error));
}

Expand Down
4 changes: 3 additions & 1 deletion TMessagesProj/jni/tgnet/ApiScheme.h
Original file line number Diff line number Diff line change
Expand Up @@ -705,10 +705,12 @@ class TL_auth_authorizationSignUpRequired : public auth_Authorization {
class TL_auth_authorization : public auth_Authorization {

public:
static const uint32_t constructor = 0x33fb7bb8;
static const uint32_t constructor = 0x2ea2c0d4;

int32_t flags;
int32_t tmp_sessions;
int32_t otherwise_relogin_days;
std::unique_ptr<ByteArray> future_auth_token;
std::unique_ptr<User> user;

void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error);
Expand Down
6 changes: 4 additions & 2 deletions TMessagesProj/jni/tgnet/ConnectionsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -891,10 +891,12 @@ void ConnectionsManager::onConnectionDataReceived(Connection *connection, Native

if (object != nullptr) {
if (datacenter->isHandshaking(connection->isMediaConnection)) {
if (LOGS_ENABLED) DEBUG_E("process handshake");
datacenter->processHandshakeResponse(connection->isMediaConnection, object, messageId);
} else {
processServerResponse(object, messageId, 0, 0, connection, 0, 0);
connection->addProcessedMessageId(messageId);
if (LOGS_ENABLED) DEBUG_E("connection(%p) received incorrect unencrypted message type", connection);
connection->reconnect();
return;
}
lastProtocolUsefullData = true;
connection->setHasUsefullData();
Expand Down
4 changes: 3 additions & 1 deletion TMessagesProj/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@

<application
android:name="org.telegram.messenger.ApplicationLoader"
android:allowBackup="false"
android:allowBackup="true"
android:restoreAnyVersion="true"
android:backupAgent=".BackupAgent"
android:hardwareAccelerated="@bool/useHardwareAcceleration"
android:largeHeap="true"
android:theme="@style/Theme.TMessages.Start"
Expand Down
22 changes: 15 additions & 7 deletions TMessagesProj/src/main/assets/arctic.attheme
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ dialogCheckboxSquareBackground=-14380561
chats_menuPhone=-1006632961
avatar_actionBarIconOrange=-8684677
chat_outViews=-1258291201
statisticChartLine_red=-2075818
avatar_actionBarSelectorCyan=-8684677
chat_secretTimerBackground=1375731712
chat_outViaBotNameText=-1
Expand All @@ -33,7 +32,6 @@ player_time=-6511440
chat_outFileProgressSelected=-13332255
chat_outTimeSelectedText=-1056964609
chat_attachGalleryText=-13726231
statisticChartLine_lightblue=-10966803
switch2Track=-691072
chat_inContactNameText=-13487566
chats_menuPhoneCats=-1
Expand Down Expand Up @@ -96,7 +94,6 @@ dialogLineProgressBackground=-3152133
chat_inReplyNameText=-13464859
chat_outAudioPerfomerSelectedText=-1
profile_title=-13224394
statisticChartLine_lightgreen=-7352519
avatar_actionBarIconRed=-8684677
chats_onlineCircle=-11810020
chat_outAudioSelectedProgress=-10907938
Expand All @@ -123,10 +120,8 @@ dialogTextBlue3=-14839830
dialogTextBlue4=-15625752
actionBarTabActiveText=-13590803
chat_topPanelMessage=-8354167
statisticChartLine_golden=-1853657
calls_callReceivedGreenIcon=-13645978
chats_pinnedOverlay=100663296
statisticChartLine_green=-10369198
chat_emojiPanelBadgeBackground=-12276493
chat_inForwardedNameText=-13464859
chats_sentError=-65536
Expand Down Expand Up @@ -175,7 +170,22 @@ picker_badge=-13261833
chat_outFileInfoSelectedText=-1056964609
chat_outAudioDurationSelectedText=-1056964609
avatar_actionBarSelectorPink=-8684677
statisticChartLine_lightblue=-10966803
statisticChartLine_blue=-13467675
statisticChartLine_golden=-1853657
statisticChartLine_green=-10369198
statisticChartLine_lightgreen=-7352519
statisticChartLine_red=-2075818
statisticChartLine_indigo=-8422925
statisticChartLine_orange=-881607
color_lightblue=-10966803
color_blue=-13467675
color_yellow=-1853657
color_green=-10369198
color_lightgreen=-7352519
color_red=-2075818
color_purple=-8422925
color_orange=-881607
chat_topPanelTitle=-281900315
chat_inAudioCacheSeekbar=1071179248
chat_outContactIcon=-13332255
Expand Down Expand Up @@ -236,7 +246,6 @@ chat_outBubbleSelected=-13332255
avatar_backgroundInProfileBlue=-13330708
chat_lockIcon=-9211021
chat_inFileNameText=-14079703
statisticChartLine_blue=-13467675
chat_inInstantSelected=-13464859
chat_outFileInfoText=-1056964609
chat_outContactPhoneSelectedText=-1056964609
Expand Down Expand Up @@ -286,7 +295,6 @@ chat_outAudioCacheSeekbar=738197503
chats_sentClock=2066650878
avatar_subtitleInProfileRed=-16777216
avatar_backgroundActionBarRed=-1
statisticChartLine_indigo=-8422925
dialogFloatingButton=-12081419
chats_archiveBackground=-11294989
chat_inPreviewInstantText=-15299362
Expand Down
22 changes: 15 additions & 7 deletions TMessagesProj/src/main/assets/bluebubbles.attheme
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ chat_unreadMessagesStartText=-12348451
dialogTextBlue=-14510887
chat_inSentClockSelected=-7752511
chat_outViews=-259216707
statisticChartLine_red=-2075818
chat_outViaBotNameText=-14514998
profile_actionPressedBackground=-1710619
chat_inPreviewInstantSelectedText=-12940081
Expand All @@ -15,7 +14,6 @@ actionBarWhiteSelector=268435456
chat_outTimeSelectedText=-8674358
chat_outFileProgressSelected=-3018241
chat_attachGalleryText=-13726231
statisticChartLine_lightblue=-10966803
chat_inContactNameText=-15654091
chats_menuPhoneCats=-2626311
chat_outPreviewLine=-12343577
Expand Down Expand Up @@ -50,7 +48,6 @@ chat_outAudioProgress=-6239505
chat_inReplyLine=-348807706
dialogLineProgressBackground=-2035723
chat_inReplyNameText=-14643754
statisticChartLine_lightgreen=-7352519
chats_onlineCircle=-13192972
chat_outAudioSelectedProgress=-7484939
chat_inInstant=-14707230
Expand All @@ -63,9 +60,7 @@ actionBarDefaultArchivedSelector=-10852240
dialogTextBlue2=-14510887
dialogTextBlue3=-15294488
dialogTextBlue4=-15294488
statisticChartLine_golden=-1853657
calls_callReceivedGreenIcon=-12475665
statisticChartLine_green=-10369198
chat_inForwardedNameText=-16220470
chats_actionBackground=-10376481
chat_outContactNameText=-14799042
Expand Down Expand Up @@ -95,7 +90,22 @@ avatar_backgroundArchived=-4998207
chat_outFileInfoSelectedText=-8674358
chat_outAudioDurationSelectedText=-8674358
avatar_backgroundArchivedHidden=-10832396
statisticChartLine_lightblue=-10966803
statisticChartLine_blue=-13467675
statisticChartLine_indigo=-8422925
statisticChartLine_red=-2075818
statisticChartLine_lightgreen=-7352519
statisticChartLine_green=-10369198
statisticChartLine_golden=-1853657
statisticChartLine_orange=-881607
color_lightblue=-10966803
color_blue=-13467675
color_purple=-8422925
color_red=-2075818
color_lightgreen=-7352519
color_green=-10369198
color_yellow=-1853657
color_orange=-881607
chat_topPanelTitle=-13199648
chat_outContactIcon=-1
chat_inPreviewLine=-348675089
Expand Down Expand Up @@ -128,7 +138,6 @@ chat_outFileBackground=-1295523081
dialogBadgeBackground=-13127439
chat_outBubbleSelected=-2690305
chat_inFileNameText=-15654091
statisticChartLine_blue=-13467675
chat_inInstantSelected=-14707230
chat_outFileInfoText=-7953740
chat_outContactPhoneSelectedText=-9725764
Expand Down Expand Up @@ -159,7 +168,6 @@ chat_inViewsSelected=-7752511
chat_outMediaIcon=-1
chat_outAudioCacheSeekbar=-1029190425
chats_sentClock=-4670273
statisticChartLine_indigo=-8422925
chat_inPreviewInstantText=-14446113
chat_outLoaderSelected=-12277262
windowBackgroundWhiteGrayText2=-7565423
Expand Down
22 changes: 15 additions & 7 deletions TMessagesProj/src/main/assets/darkblue.attheme
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ actionBarActionModeDefaultTop=-14536643
statisticChartHintLine=452984831
chats_menuPhone=-1816080163
chat_outViews=-7357217
statisticChartLine_red=-832444
chat_secretTimerBackground=-1239540194
avatar_actionBarSelectorCyan=-12758164
chat_outViaBotNameText=-7551233
Expand Down Expand Up @@ -49,7 +48,6 @@ chat_inAudioPerfomerText=-8812393
statisticChartBackZoomColor=-12145938
player_button=-1
key_sheet_other=1140850687
statisticChartLine_lightblue=-12814100
chat_inContactNameText=-8796932
chats_menuPhoneCats=-8613724
chat_outPreviewLine=-6631937
Expand Down Expand Up @@ -145,7 +143,6 @@ actionBarActionModeDefaultIcon=-1
windowBackgroundWhiteRedText4=-3187617
chat_goDownButtonIcon=-1
windowBackgroundWhiteRedText5=-1152913
statisticChartLine_lightgreen=-7352519
chat_outAudioSelectedProgress=-1
chat_messageTextOut=-328966
chat_inInstant=-8796932
Expand Down Expand Up @@ -185,14 +182,12 @@ windowBackgroundWhiteGreenText=-10371737
actionBarTabActiveText=-9781249
chat_emojiPanelIcon=-9996665
chat_topPanelMessage=1859974399
statisticChartLine_golden=-2184161
statisticChartSignatureAlpha=-1946157057
chat_emojiPanelTrendingDescription=-8549479
calls_callReceivedGreenIcon=-12001930
chats_pinnedOverlay=150994943
windowBackgroundWhiteInputField=-12035217
avatar_backgroundRed=-1545110
statisticChartLine_green=-12729793
chat_emojiPanelIconSelector=-10177041
chat_emojiPanelBadgeBackground=-11291403
chat_inForwardedNameText=-8796932
Expand Down Expand Up @@ -260,7 +255,22 @@ premiumGradientBackground2=-15394271
premiumStarGradient1=-15436801
premiumStarGradient2=-4167942
dialogTextHint=-8549479
statisticChartLine_blue=-11362305
statisticChartLine_indigo=-7906078
statisticChartLine_red=-832444
statisticChartLine_lightblue=-12814100
statisticChartLine_lightgreen=-7352519
statisticChartLine_golden=-2184161
statisticChartLine_green=-12729793
statisticChartLine_orange=-881607
color_blue=-11362305
color_purple=-7906078
color_red=-832444
color_lightblue=-12814100
color_lightgreen=-7352519
color_yellow=-2184161
color_green=-12729793
color_orange=-881607
chat_topPanelTitle=-9719066
chat_inAudioCacheSeekbar=-11443856
chat_outContactIcon=-1
Expand Down Expand Up @@ -340,7 +350,6 @@ dialogBadgeBackground=-10177041
chat_outBubbleSelected=-11829841
avatar_backgroundInProfileBlue=-11232035
chat_inFileNameText=-1
statisticChartLine_blue=-11362305
inappPlayerPerformer=-1
chat_inInstantSelected=-5648402
chat_outFileInfoText=-7357217
Expand Down Expand Up @@ -416,7 +425,6 @@ chats_sentClock=-11772054
chat_inAudioSeekbar=-11443856
avatar_subtitleInProfileRed=-7628894
avatar_backgroundActionBarRed=-14602949
statisticChartLine_indigo=-7906078
dialogSearchIcon=-8945521
chat_inPreviewInstantText=-8796932
chats_archiveBackground=-11036980
Expand Down
Loading

0 comments on commit 135e3cc

Please sign in to comment.