mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-04 03:13:15 +08:00
update logic.
This commit is contained in:
parent
d6f147d4d4
commit
a33588990c
@ -244,7 +244,11 @@ func (c *conversationServer) SetConversations(ctx context.Context, req *pbconver
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
if len(conversationList) != 0 {
|
||||||
conversationMap[userID] = conversationList[0]
|
conversationMap[userID] = conversationList[0]
|
||||||
|
} else {
|
||||||
|
conversationMap[userID] = &dbModel.Conversation{}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var conversation dbModel.Conversation
|
var conversation dbModel.Conversation
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user