Skip to content

Commit 5dd6491

Browse files
committed
update to 10.6.4 (4365)
1 parent 928146c commit 5dd6491

File tree

182 files changed

+7032
-1786
lines changed

Some content is hidden

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

182 files changed

+7032
-1786
lines changed

TMessagesProj/jni/tgnet/ConnectionsManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2390,7 +2390,7 @@ void ConnectionsManager::processRequestQueue(uint32_t connectionTypes, uint32_t
23902390
}
23912391
}
23922392
if (request->retryCount >= retryMax) {
2393-
if (LOGS_ENABLED) DEBUG_E("timed out %s", typeInfo.name());
2393+
if (LOGS_ENABLED) DEBUG_E("timed out %s, message_id = 0x%" PRIx64, typeInfo.name(), request->messageId);
23942394
auto error = new TL_error();
23952395
error->code = -123;
23962396
error->text = "RETRY_LIMIT";

TMessagesProj/src/main/assets/bluebubbles.attheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ chat_inReplyNameText=-14643754
4949
chats_onlineCircle=-13192972
5050
chat_outAudioSelectedProgress=-7484939
5151
chat_inInstant=-14707230
52-
avatar_backgroundSaved=-10438409
52+
avatar_backgroundSaved=-9847303
5353
chats_sentReadCheck=-15754010
5454
chats_nameMessageArchived=-7237231
5555
chat_outSentCheckSelected=-14968350

TMessagesProj/src/main/assets/darkblue.attheme

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ windowBackgroundWhiteBlueIcon=-528890628
99
chat_goDownButtonCounterBackground=-11425042
1010
actionBarActionModeDefault=-14273984
1111
actionBarActionModeDefaultTop=-14536643
12+
actionBarActionModeReaction=318767103
13+
actionBarActionModeReactionText=-1
14+
actionBarActionModeReactionDot=-13287865
1215
statisticChartHintLine=452984831
1316
chats_menuPhone=-1816080163
1417
chat_outViews=-7357217
@@ -425,7 +428,7 @@ chats_attachMessage=-8548712
425428
chat_topPanelBackground=-14602949
426429
chat_outSentClock=-8213557
427430
dialogBackgroundGray=-14932431
428-
chat_searchPanelText=-8796932
431+
chat_searchPanelText=-1
429432
chat_inContactIcon=-1
430433
code_comment=-2130706433
431434
chat_outCodeBackground=857487708

TMessagesProj/src/main/assets/night.attheme

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ chat_inSentClockSelected=-7490861
88
chat_goDownButtonCounterBackground=-11425042
99
actionBarActionModeDefault=-14211289
1010
actionBarActionModeDefaultTop=-14277082
11+
actionBarActionModeReaction=318767103
12+
actionBarActionModeReactionText=-1
13+
actionBarActionModeReactionDot=-13287865
1114
statisticChartHintLine=452984831
1215
chats_menuPhone=-1815557944
1316
chat_outViews=-7357217
@@ -450,7 +453,7 @@ chats_attachMessage=-8224126
450453
chat_topPanelBackground=-15066597
451454
chat_outSentClock=-6698513
452455
dialogBackgroundGray=-14013910
453-
chat_searchPanelText=-10767620
456+
chat_searchPanelText=-1
454457
chat_inContactIcon=-1
455458
code_comment=-2130706433
456459
chat_outCodeBackground=859062986

TMessagesProj/src/main/java/androidx/recyclerview/widget/ChatListItemAnimator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ public boolean animateChange(RecyclerView.ViewHolder oldHolder, RecyclerView.Vie
990990
return true;
991991
}
992992

993-
void animateChangeImpl(final ChangeInfo changeInfo) {
993+
public void animateChangeImpl(final ChangeInfo changeInfo) {
994994
final RecyclerView.ViewHolder holder = changeInfo.oldHolder;
995995
final View view = holder == null ? null : holder.itemView;
996996
final RecyclerView.ViewHolder newHolder = changeInfo.newHolder;

TMessagesProj/src/main/java/androidx/recyclerview/widget/DefaultItemAnimator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ public boolean animateChange(RecyclerView.ViewHolder oldHolder, RecyclerView.Vie
468468
return true;
469469
}
470470

471-
void animateChangeImpl(final ChangeInfo changeInfo) {
471+
public void animateChangeImpl(final ChangeInfo changeInfo) {
472472
final RecyclerView.ViewHolder holder = changeInfo.oldHolder;
473473
final View view = holder == null ? null : holder.itemView;
474474
final RecyclerView.ViewHolder newHolder = changeInfo.newHolder;

TMessagesProj/src/main/java/org/telegram/SQLite/SQLitePreparedStatement.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public class SQLitePreparedStatement {
2525

2626
private long startTime;
2727
private String query;
28-
//private static HashMap<SQLitePreparedStatement, String> hashMap;
2928

3029
public long getStatementHandle() {
3130
return sqliteStatementHandle;
@@ -112,9 +111,6 @@ public void finalizeQuery() {
112111
}
113112
}
114113
try {
115-
/*if (BuildVars.DEBUG_PRIVATE_VERSION) {
116-
hashMap.remove(this);
117-
}*/
118114
isFinalized = true;
119115
finalize(sqliteStatementHandle);
120116
} catch (SQLiteException e) {

TMessagesProj/src/main/java/org/telegram/messenger/AndroidUtilities.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
import android.text.style.URLSpan;
7474
import android.text.util.Linkify;
7575
import android.util.DisplayMetrics;
76+
import android.util.Log;
7677
import android.util.Pair;
7778
import android.util.StateSet;
7879
import android.util.TypedValue;
@@ -155,6 +156,7 @@
155156
import org.telegram.ui.Components.PickerBottomLayout;
156157
import org.telegram.ui.Components.PipRoundVideoView;
157158
import org.telegram.ui.Components.PipVideoOverlay;
159+
import org.telegram.ui.Components.RLottieImageView;
158160
import org.telegram.ui.Components.RecyclerListView;
159161
import org.telegram.ui.Components.ShareAlert;
160162
import org.telegram.ui.Components.TypefaceSpan;
@@ -314,6 +316,7 @@ public class AndroidUtilities {
314316
};
315317

316318
public static final String STICKERS_PLACEHOLDER_PACK_NAME = "tg_placeholders_android";
319+
public static final String STICKERS_PLACEHOLDER_PACK_NAME_2 = "tg_superplaceholders_android_2";
317320

318321
private static boolean containsUnsupportedCharacters(String text) {
319322
if (text.contains("\u202C")) {
@@ -4441,6 +4444,7 @@ public static float distanceInfluenceForSnapDuration(float f) {
44414444
}
44424445

44434446
public static void makeAccessibilityAnnouncement(CharSequence what) {
4447+
if (TextUtils.isEmpty(what)) return;
44444448
AccessibilityManager am = (AccessibilityManager) ApplicationLoader.applicationContext.getSystemService(Context.ACCESSIBILITY_SERVICE);
44454449
if (am.isEnabled()) {
44464450
AccessibilityEvent ev = AccessibilityEvent.obtain();

TMessagesProj/src/main/java/org/telegram/messenger/ApplicationLoader.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -429,11 +429,6 @@ public static boolean isConnectedToWiFi() {
429429
return false;
430430
}
431431

432-
public static boolean useLessData() {
433-
ensureCurrentNetworkGet();
434-
return BuildVars.DEBUG_PRIVATE_VERSION && (SharedConfig.forceLessData || isConnectionSlow());
435-
}
436-
437432
public static boolean isConnectionSlow() {
438433
try {
439434
ensureCurrentNetworkGet(false);

TMessagesProj/src/main/java/org/telegram/messenger/ChatMessagesMetadataController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public ChatMessagesMetadataController(ChatActivity chatActivity) {
2323
}
2424

2525
public void checkMessages(ChatActivity.ChatActivityAdapter chatAdapter, int maxAdapterPosition, int minAdapterPosition, long currentTime) {
26-
ArrayList<MessageObject> messages = chatActivity.messages;
26+
ArrayList<MessageObject> messages = chatAdapter.getMessages();
2727
if (!chatActivity.isInScheduleMode() && maxAdapterPosition >= 0 && minAdapterPosition >= 0) {
2828
int from = minAdapterPosition - chatAdapter.messagesStartRow - 10;
2929
int to = maxAdapterPosition - chatAdapter.messagesStartRow + 10;

0 commit comments

Comments
 (0)