mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-28 14:42:14 +08:00
feat: support GetLastMessage
This commit is contained in:
parent
3059436c6c
commit
f3d5634e56
@ -236,14 +236,14 @@ func (c *Client) handleMessage(message []byte) error {
|
|||||||
resp, messageErr = c.longConnServer.GetSeqMessage(ctx, binaryReq)
|
resp, messageErr = c.longConnServer.GetSeqMessage(ctx, binaryReq)
|
||||||
case WSGetConvMaxReadSeq:
|
case WSGetConvMaxReadSeq:
|
||||||
resp, messageErr = c.longConnServer.GetConversationsHasReadAndMaxSeq(ctx, binaryReq)
|
resp, messageErr = c.longConnServer.GetConversationsHasReadAndMaxSeq(ctx, binaryReq)
|
||||||
|
case WsPullConvLastMessage:
|
||||||
|
resp, messageErr = c.longConnServer.GetLastMessage(ctx, binaryReq)
|
||||||
case WsLogoutMsg:
|
case WsLogoutMsg:
|
||||||
resp, messageErr = c.longConnServer.UserLogout(ctx, binaryReq)
|
resp, messageErr = c.longConnServer.UserLogout(ctx, binaryReq)
|
||||||
case WsSetBackgroundStatus:
|
case WsSetBackgroundStatus:
|
||||||
resp, messageErr = c.setAppBackgroundStatus(ctx, binaryReq)
|
resp, messageErr = c.setAppBackgroundStatus(ctx, binaryReq)
|
||||||
case WsSubUserOnlineStatus:
|
case WsSubUserOnlineStatus:
|
||||||
resp, messageErr = c.longConnServer.SubUserOnlineStatus(ctx, c, binaryReq)
|
resp, messageErr = c.longConnServer.SubUserOnlineStatus(ctx, c, binaryReq)
|
||||||
case WsPullConvLastMessage:
|
|
||||||
resp, messageErr = c.longConnServer.GetLastMessage(ctx, binaryReq)
|
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf(
|
return fmt.Errorf(
|
||||||
"ReqIdentifier failed,sendID:%s,msgIncr:%s,reqIdentifier:%d",
|
"ReqIdentifier failed,sendID:%s,msgIncr:%s,reqIdentifier:%d",
|
||||||
|
|||||||
@ -47,12 +47,12 @@ const (
|
|||||||
WSSendSignalMsg = 1004
|
WSSendSignalMsg = 1004
|
||||||
WSPullMsg = 1005
|
WSPullMsg = 1005
|
||||||
WSGetConvMaxReadSeq = 1006
|
WSGetConvMaxReadSeq = 1006
|
||||||
|
WsPullConvLastMessage = 1007
|
||||||
WSPushMsg = 2001
|
WSPushMsg = 2001
|
||||||
WSKickOnlineMsg = 2002
|
WSKickOnlineMsg = 2002
|
||||||
WsLogoutMsg = 2003
|
WsLogoutMsg = 2003
|
||||||
WsSetBackgroundStatus = 2004
|
WsSetBackgroundStatus = 2004
|
||||||
WsSubUserOnlineStatus = 2005
|
WsSubUserOnlineStatus = 2005
|
||||||
WsPullConvLastMessage = 2006
|
|
||||||
WSDataError = 3001
|
WSDataError = 3001
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user