notification conversationIDs

This commit is contained in:
wangchuxiao
2023-05-12 20:19:28 +08:00
parent b64e9af92f
commit 0d881c2139
2 changed files with 12 additions and 0 deletions
+9
View File
@@ -239,6 +239,15 @@ func IsNotification(conversationID string) bool {
return strings.HasPrefix(conversationID, "n_")
}
func GetNotificationConvetstionID(conversationID string) string {
l := strings.Split(conversationID, "_")
if len(l) > 2 {
l[0] = "n"
return strings.Join(l, "_")
}
return ""
}
type MsgBySeq []*sdkws.MsgData
func (s MsgBySeq) Len() int {