update logic.

This commit is contained in:
Monet Lee 2024-08-22 17:33:29 +08:00
parent d6f147d4d4
commit a33588990c

View File

@ -244,7 +244,11 @@ func (c *conversationServer) SetConversations(ctx context.Context, req *pbconver
if err != nil {
return nil, err
}
if len(conversationList) != 0 {
conversationMap[userID] = conversationList[0]
} else {
conversationMap[userID] = &dbModel.Conversation{}
}
}
var conversation dbModel.Conversation