fix im profile display name remark priority
This commit is contained in:
@@ -7311,6 +7311,7 @@ func TestServeIMUserProfile(t *testing.T) {
|
||||
Topic: types.Uid(1).P2PName(peer),
|
||||
Relationship: types.RelationshipFriend,
|
||||
CanSend: true,
|
||||
Remark: "老同事",
|
||||
}}
|
||||
store.Profiles = &testProfilesStore{}
|
||||
defer func() {
|
||||
@@ -7332,6 +7333,9 @@ func TestServeIMUserProfile(t *testing.T) {
|
||||
if data["relationship"] != types.RelationshipFriend || data["signature"] != "hello" || data["topic"] == "" {
|
||||
t.Fatalf("unexpected profile response: %#v", data)
|
||||
}
|
||||
if data["display_name"] != "老同事" || data["remark"] != "老同事" {
|
||||
t.Fatalf("profile display name should use friend remark: %#v", data)
|
||||
}
|
||||
}
|
||||
|
||||
func TestServeIMUserQRCodes(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user