fix im profile display name remark priority
This commit is contained in:
+4
-1
@@ -9343,7 +9343,7 @@ func blockListItemPayload(item types.BlockListItem) map[string]any {
|
||||
}
|
||||
|
||||
func userProfilePayload(user *types.User, ctx *types.RelationshipContext) map[string]any {
|
||||
data := userSummaryPayload(user, "")
|
||||
data := userSummaryPayload(user, ctx.Remark)
|
||||
data["relationship"] = ctx.Relationship
|
||||
data["topic"] = ctx.Topic
|
||||
data["capabilities"] = map[string]any{
|
||||
@@ -9351,6 +9351,9 @@ func userProfilePayload(user *types.User, ctx *types.RelationshipContext) map[st
|
||||
"can_call": imCanCall(ctx.CanSend),
|
||||
"can_add_friend": ctx.Relationship == types.RelationshipNone,
|
||||
}
|
||||
if ctx.Remark != "" {
|
||||
data["remark"] = ctx.Remark
|
||||
}
|
||||
if ctx.RequestID != "" {
|
||||
data["request_id"] = ctx.RequestID
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user