Skip to content

Commit

Permalink
Merge upstream 7.7.2 (2293)
Browse files Browse the repository at this point in the history
# Conflicts:
#	TMessagesProj/build.gradle
#	TMessagesProj/src/main/java/org/telegram/messenger/BuildVars.java
  • Loading branch information
nekohasekai committed Apr 17, 2021
2 parents 6e80a66 + a5939cc commit ec6ae15
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 14 deletions.
6 changes: 3 additions & 3 deletions TMessagesProj/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import cn.hutool.core.util.RuntimeUtil
apply plugin: "com.android.application"
apply plugin: "kotlin-android"

def verName = "7.7.1-preview04"
def verName = "7.7.2-rc01"
def verCode = 290 + 3 * 1

if (System.getenv("DEBUG_BUILD") == "true") {
verName += "-" + RuntimeUtil.execForStr("git log --pretty=format:'%h' -n 1)")
}

def officialVer = "7.7.1"
def officialCode = 2291
def officialVer = "7.7.2"
def officialCode = 2293

def serviceAccountCredentialsFile = rootProject.file("service_account_credentials.json")

Expand Down
2 changes: 1 addition & 1 deletion TMessagesProj/jni/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ static int writeOggPage(ogg_page *page, FILE *os) {
return written;
}

const opus_int32 bitrate = 25000;
const opus_int32 bitrate = 30 * 1024;
const opus_int32 frame_size = 960;
const int with_cvbr = 1;
const int max_ogg_delay = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1318,8 +1318,11 @@ public String formatCurrencyString(long amount, boolean fixAnything, boolean wit
}
String result = (discount ? "-" : "") + format.format(doubleAmount);
int idx = result.indexOf(type);
if (idx >= 0 && result.charAt(idx + type.length()) != ' ') {
result = result.substring(0, idx + type.length()) + " " + result.substring(idx + type.length());
if (idx >= 0) {
idx += type.length();
if (idx < result.length() && result.charAt(idx + type.length()) != ' ') {
result = result.substring(0, idx + type.length()) + " " + result.substring(idx + type.length());
}
}
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6713,14 +6713,18 @@ public Runnable getMessagesInternal(long dialogId, long mergeDialogId, int count
}
cursor.dispose();
}
if (messageIdsToFix != null) { //TODO remove later
if (messageIdsToFix != null) {
SQLitePreparedStatement state = database.executeFast("UPDATE messages SET mid = ? WHERE mid = ?");
for (int a = 0, N = messageIdsToFix.size(); a < N; a++) {
long id = messageIdsToFix.get(a);
state.requery();
state.bindLong(1, (int) id);
state.bindLong(2, id);
state.step();
try {
for (int a = 0, N = messageIdsToFix.size(); a < N; a++) {
long id = messageIdsToFix.get(a);
state.requery();
state.bindLong(1, (int) id);
state.bindLong(2, id);
state.step();
}
} catch (Exception e) {
FileLog.e(e);
}
state.dispose();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18385,7 +18385,7 @@ public void onPause() {
CharSequence draftMessage = null;
MessageObject replyMessage = null;
boolean searchWebpage = true;
if (!ignoreAttachOnPause && chatActivityEnterView != null && bottomOverlayChat.getVisibility() != View.VISIBLE) {
if (!ignoreAttachOnPause && chatActivityEnterView != null && bottomOverlayChat != null && bottomOverlayChat.getVisibility() != View.VISIBLE) {
chatActivityEnterView.onPause();
replyMessage = replyingMessageObject;
if (!chatActivityEnterView.isEditingMessage()) {
Expand Down

0 comments on commit ec6ae15

Please sign in to comment.