@@ -101,16 +101,12 @@ func (c *Conversation) doMsgNew(c2v common.Cmd2Value) {
101
101
phNewConversationSet := make (map [string ]* db.LocalConversation )
102
102
log .Info (operationID , "do Msg come here" )
103
103
for _ , v := range allMsg {
104
- log .Error ("this test" , v .Options , v .ClientMsgID )
105
104
106
105
isHistory = utils .GetSwitchFromOptions (v .Options , constant .IsHistory )
107
106
isUnreadCount = utils .GetSwitchFromOptions (v .Options , constant .IsUnreadCount )
108
107
isConversationUpdate = utils .GetSwitchFromOptions (v .Options , constant .IsConversationUpdate )
109
108
isNotPrivate = utils .GetSwitchFromOptions (v .Options , constant .IsNotPrivate )
110
109
isSenderConversationUpdate = utils .GetSwitchFromOptions (v .Options , constant .IsSenderConversationUpdate )
111
- //if v.ClientMsgID == "a1eb02b43909fbe33e44e80d2b49c87e" {
112
- // log.Error("this test",v.Options,isConversationUpdate)
113
- //}
114
110
msg := new (sdk_struct.MsgStruct )
115
111
copier .Copy (msg , v )
116
112
var tips server_api_params.TipsComm
@@ -268,7 +264,7 @@ func (c *Conversation) doMsgNew(c2v common.Cmd2Value) {
268
264
lc .FaceURL = msg .SenderFaceURL
269
265
case constant .GroupChatType :
270
266
//Generate At type into Conversation
271
- c .genConversationGroupAtType (& lc , msg )
267
+ // c.genConversationGroupAtType(&lc, msg)
272
268
lc .GroupID = v .GroupID
273
269
lc .ConversationID = utils .GetConversationIDBySessionType (lc .GroupID , constant .GroupChatType )
274
270
//faceUrl, name, err := u.getGroupNameAndFaceUrlByUid(c.GroupID)
@@ -387,7 +383,6 @@ func (c *Conversation) diff(local, generated, cc, nc map[string]*db.LocalConvers
387
383
for _ , v := range generated {
388
384
log .Debug ("node diff" , * v )
389
385
if localC , ok := local [v .ConversationID ]; ok {
390
- localC .GroupAtType = v .GroupAtType
391
386
if v .LatestMsgSendTime > localC .LatestMsgSendTime {
392
387
localC .UnreadCount = localC .UnreadCount + v .UnreadCount
393
388
localC .LatestMsg = v .LatestMsg
@@ -750,7 +745,6 @@ func (c *Conversation) updateConversation(lc *db.LocalConversation, cs map[strin
750
745
if oldC , ok := cs [lc .ConversationID ]; ! ok {
751
746
cs [lc .ConversationID ] = lc
752
747
} else {
753
- oldC .GroupAtType = lc .GroupAtType
754
748
if lc .LatestMsgSendTime > oldC .LatestMsgSendTime {
755
749
oldC .UnreadCount = oldC .UnreadCount + lc .UnreadCount
756
750
oldC .LatestMsg = lc .LatestMsg
0 commit comments