Skip to content

Commit

Permalink
Update panel/chat/interface.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 authored Dec 18, 2024
1 parent c6816c7 commit eabaf0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/chat/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,5 +740,5 @@ def stream(
# so only set to the default when not a ChatMessage
user = user or self.user
avatar = avatar or self.avatar
message_params["show_edit_icon"] = message_params.get("show_edit_icon", user == self.user)
message_params["show_edit_icon"] = message_params.get("show_edit_icon", user == self.user and message_params.get("edit_callback"))
return super().stream(value, user=user, avatar=avatar, message=message, replace=replace, **message_params)

0 comments on commit eabaf0e

Please sign in to comment.