修改撤回时间配置,可以配置为不允许撤回

This commit is contained in:
heavyrian2012
2025-05-10 08:12:20 +08:00
parent 94e430cc83
commit 4da9173c5f
3 changed files with 3 additions and 3 deletions
@@ -2480,7 +2480,7 @@ public class MemoryMessagesStore implements IMessagesStore {
}
boolean isExpired = false;
if (!canRecall && message.getFromUser().equals(operatorId)) {
if (mRecallTimeLimit > 0 && now - message.getServerTimestamp() > mRecallTimeLimit * 1000) {
if (mRecallTimeLimit >= 0 && now - message.getServerTimestamp() > mRecallTimeLimit * 1000) {
isExpired = true;
} else {
canRecall = true;