Class ChannelListReadReceiptHandler
-
- All Implemented Interfaces:
public class ChannelListReadReceiptHandler extends MultiDataHandler
Channel list read receipt handler
Handles V5 read receipts, multi-device read status synchronization, and message editing.
- Since:
5.10.4
-
-
Field Summary
Fields Modifier and Type Field Description public final static MultiDataHandler.DataKey<ChannelIdentifier>KEY_SYNC_READ_STATUSpublic final static MultiDataHandler.DataKey<HashMap<String, ReadReceiptInfo>>KEY_READ_RECEIPT_V5_UPDATEpublic final static MultiDataHandler.DataKey<Boolean>KEY_MESSAGE_MODIFIEDprotected volatile booleanisAlive
-
Constructor Summary
Constructors Constructor Description ChannelListReadReceiptHandler()
-
Method Summary
Modifier and Type Method Description voidcollectAndQueryReadReceiptInfo(List<BaseUiChannel> uiConversationList)Collects messages in the channel list that require V5 read receipt queries and initiates the query static booleanisIdentifierMatched(ChannelIdentifier id1, ChannelIdentifier id2)Checks whether two ChannelIdentifiers match voidstop()Stops the handler. -
Methods inherited from class ai.nexconn.chatui.base.BaseHandler
isAlive -
Methods inherited from class ai.nexconn.chatui.base.MultiDataHandler
addDataChangeListener, notifyDataChange, notifyDataError, notifyDataError, replaceDataChangeListener -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
collectAndQueryReadReceiptInfo
void collectAndQueryReadReceiptInfo(List<BaseUiChannel> uiConversationList)
Collects messages in the channel list that require V5 read receipt queries and initiates the query
- Parameters:
uiConversationList- the current channel list
-
isIdentifierMatched
static boolean isIdentifierMatched(ChannelIdentifier id1, ChannelIdentifier id2)
Checks whether two ChannelIdentifiers match
-
stop
void stop()
Stops the handler.
-
-
-
-