Skip to content

Commit

Permalink
fix: build 10.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Mar 9, 2024
1 parent 0549d80 commit 7108628
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion TMessagesProj/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ dependencies {
compileOnly "com.google.firebase:firebase-crashlytics:$crashlyticsVersion"
compileOnly "com.google.android.play:core:$playCoreVersion"

implementation 'com.google.android.gms:play-services-vision:20.1.3'
debugImplementation 'com.google.android.gms:play-services-maps:18.1.0'
debugImplementation 'com.google.android.gms:play-services-location:20.0.0'
releaseImplementation 'com.google.android.gms:play-services-maps:18.1.0'
Expand Down Expand Up @@ -405,7 +406,7 @@ android {
excludes += ['/fabric/**', '/META-INF/*.version', '/META-INF/*.kotlin_module', '/META-INF/native-image/**', '/builddef.lst', '/*.txt', '/DebugProbesKt.bin', '/okhttp3/internal/publicsuffix/NOTICE']
}

def lib = "libtmessages.47.so"
def lib = "libtmessages.*.so"
pickFirst "lib/x86/$lib"
pickFirst "lib/x86_64/$lib"
pickFirst "lib/armeabi-v7a/$lib"
Expand Down
8 changes: 5 additions & 3 deletions TMessagesProj/jni/TgNetWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,11 @@ inline int registerNativeMethods(JNIEnv *env, const char *className, JNINativeMe
extern "C" int registerNativeTgNetFunctions(JavaVM *vm, JNIEnv *env) {
java = vm;

if (!registerNativeMethods(env, NativeByteBufferClassPathName, NativeByteBufferMethods,
sizeof(NativeByteBufferMethods) /
sizeof(NativeByteBufferMethods[0]))) {
if (!registerNativeMethods(env, NativeByteBufferClassPathName, NativeByteBufferMethods, sizeof(NativeByteBufferMethods) / sizeof(NativeByteBufferMethods[0]))) {
return JNI_FALSE;
}

if (!registerNativeMethods(env, ConnectionsManagerClassPathName, ConnectionsManagerMethods, sizeof(ConnectionsManagerMethods) / sizeof(ConnectionsManagerMethods[0]))) {
return JNI_FALSE;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1501,6 +1501,7 @@ public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
case VIEW_TYPE_EDIT: {
PollEditTextCell cell = (PollEditTextCell) holder.itemView;
cell.setIcon(FolderIconHelper.getTabIcon(newFilterEmoticon), newFilterEmoticon);
break;
}
case VIEW_TYPE_HEADER_COLOR_PREVIEW: {
folderTagsHeader = (HeaderCellColorPreview) holder.itemView;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8725,9 +8725,6 @@ private void updateRowsIds() {

infoStartRow = rowCount;
infoHeaderRow = rowCount++;
if (username != null) {
usernameRow = rowCount++;
}
if (user != null && !user.restriction_reason.isEmpty()) {
restrictionReasonRow = rowCount++;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public void deleteUserChannelHistoryWithSearch(AlertDialog progress, final long
if (progress != null) uDismiss(progress);
return;
}
AndroidUtilities.runOnUIThread(() -> getMessagesController().deleteMessages(ids, random_ids, null, dialog_id, true, false));
AndroidUtilities.runOnUIThread(() -> getMessagesController().deleteMessages(ids, random_ids, null, dialog_id, 0, true, 0));
if (progress != null) uUpdate(progress, ">> " + indey);
deleteUserChannelHistoryWithSearch(progress, dialog_id, user, lastMessageId, indey);
} else {
Expand Down Expand Up @@ -324,7 +324,7 @@ public void deleteChannelHistory(final long dialog_id, TLRPC.Chat chat, final in
deleteUserChannelHistory(chat, userId, 0);
}
if (!msgIds.isEmpty()) {
getMessagesController().deleteMessages(msgIds, random_ids, null, dialog_id, true, false);
getMessagesController().deleteMessages(msgIds, random_ids, null, dialog_id, 0, true, 0);
}
deleteChannelHistory(dialog_id, chat, lastMessageId);

Expand Down Expand Up @@ -671,7 +671,7 @@ private void deleteUserHistoryWithSearch(BaseFragment fragment, final long dialo
}
Runnable deleteAction = () -> {
for (ArrayList<Integer> list : lists) {
getMessagesController().deleteMessages(list, null, null, dialogId, true, false);
getMessagesController().deleteMessages(list, null, null, dialogId, 0, true, 0);
}
};
AndroidUtilities.runOnUIThread(callback != null ? () -> callback.run(messageIds.size(), deleteAction) : deleteAction);
Expand Down

0 comments on commit 7108628

Please sign in to comment.