Fix friends display name fallback

This commit is contained in:
richjohnrambo
2026-09-04 13:45:18 +08:00
parent 0f1c1f9255
commit 47649d33e2
4 changed files with 72 additions and 19 deletions
+3
View File
@@ -8539,6 +8539,9 @@ func friendListItemPayload(item types.FriendListItem) map[string]any {
}
}
}
if item.Friendship.Remark == "" && data["display_name"] == data["user_id"] {
data["display_name_source"] = "user_id"
}
data["initial"] = displayInitial(data["display_name"])
return data
}