Skip to content

Commit

Permalink
配置允许撤回消息时间小于等于0时可以允许用户任意时间撤回消息
Browse files Browse the repository at this point in the history
  • Loading branch information
heavyrian2012 committed Feb 21, 2025
1 parent d14dc74 commit ee6e4f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2454,7 +2454,7 @@ public ErrorCode recallMessage(long messageUid, String operatorId, String client
}
boolean isExpired = false;
if (!canRecall && message.getFromUser().equals(operatorId)) {
if (now - message.getServerTimestamp() > mRecallTimeLimit * 1000) {
if (mRecallTimeLimit > 0 && now - message.getServerTimestamp() > mRecallTimeLimit * 1000) {
isExpired = true;
} else {
canRecall = true;
Expand Down

0 comments on commit ee6e4f9

Please sign in to comment.