update get message reaction max seq method

This commit is contained in:
SL 2024-02-20 16:36:59 +08:00
parent c591b21ee4
commit 99d0a8bffd
2 changed files with 15 additions and 3 deletions

View File

@ -1447,7 +1447,7 @@ public class MsgDbManager {
return msg;
}
public long getMaxSeqWithChannel(String channelID, byte channelType) {
public long getMaxReactionSeqWithChannel(String channelID, byte channelType) {
return MsgReactionDBManager.getInstance().queryMaxSeqWithChannel(channelID, channelType);
}

View File

@ -501,13 +501,25 @@ public class MsgManager extends BaseManager {
return messageOrderSeq / wkOrderSeqFactor;
}
/**
* use getMaxReactionSeqWithChannel
* @param channelID channelId
* @param channelType channelType
* @return channel reaction max seq version
*/
@Deprecated
public long getMaxSeqWithChannel(String channelID, byte channelType) {
return MsgDbManager.getInstance().getMaxSeqWithChannel(channelID, channelType);
return MsgDbManager.getInstance().getMaxReactionSeqWithChannel(channelID, channelType);
}
public long getMaxReactionSeqWithChannel(String channelID, byte channelType) {
return MsgDbManager.getInstance().getMaxReactionSeqWithChannel(channelID, channelType);
}
// 设置消息回应
public void setSyncMsgReaction(String channelID, byte channelType) {
long maxSeq = MsgDbManager.getInstance().getMaxSeqWithChannel(channelID, channelType);
long maxSeq = MsgDbManager.getInstance().getMaxReactionSeqWithChannel(channelID, channelType);
if (iSyncMsgReaction != null) {
runOnMainThread(() -> iSyncMsgReaction.onSyncMsgReaction(channelID, channelType, maxSeq));
}