1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2024-11-22 23:15:24 +01:00

fix: remember all clicked replies

This commit is contained in:
luvletter2333 2023-03-16 02:34:02 +08:00
parent 021af48ee3
commit c068a74dd8
No known key found for this signature in database
GPG Key ID: 9EB7723F3A0ACF92

View File

@ -7303,7 +7303,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
pagedownButton.setOnLongClickListener(view -> {
returnToMessageId = 0;
returnToMessageIdsStack.clear();
scrollToLastMessage(true, true);
onPageDownClicked();
return true;
});
}
@ -9467,7 +9467,9 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
};
if (createUnreadMessageAfterId != 0) {
scrollToMessageId(createUnreadMessageAfterId, 0, false, returnToLoadIndex, true, 0, inCaseLoading);
} else if (returnToMessageId > 0) {
} else if (returnToMessageId > 0 || (NekoConfig.rememberAllBackMessages.Bool() && !returnToMessageIdsStack.empty())) {
if (NekoConfig.rememberAllBackMessages.Bool() && !returnToMessageIdsStack.empty())
returnToMessageId = returnToMessageIdsStack.pop();
scrollToMessageId(returnToMessageId, 0, true, returnToLoadIndex, true, 0, inCaseLoading);
} else {
scrollToLastMessage(false, true, inCaseLoading);