mirror of
https://github.com/WuKongIM/WuKongIMAndroidSDK
synced 2025-06-02 23:39:05 +00:00
update get message reaction max seq method
This commit is contained in:
parent
c591b21ee4
commit
99d0a8bffd
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user