feat: add conversation system action messages

This commit is contained in:
richjohnrambo
2026-09-01 13:12:24 +08:00
parent 39e7e019c7
commit edced2675b
8 changed files with 213 additions and 41 deletions
+9
View File
@@ -5172,6 +5172,15 @@ func TestServeIMFriendsList(t *testing.T) {
now := time.Now().UTC().Round(time.Millisecond)
peer := types.Uid(2)
relations := &testRelationsStore{friends: []types.FriendListItem{{
Friendship: types.Friendship{
TenantID: 7,
UserID: 1,
PeerID: 1,
Status: types.RelationshipFriend,
Topic: types.Uid(1).P2PName(types.Uid(1)),
},
Peer: &types.User{ObjHeader: types.ObjHeader{Id: types.Uid(1).String()}, TenantID: 7, Public: map[string]any{"display_name": "Self"}},
}, {
Friendship: types.Friendship{
TenantID: 7,
UserID: 1,