Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Message owner name for Bot messages #802

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion raven/raven_messaging/doctype/raven_message/raven_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ def get_message_owner_name(self):
"""
Get the full name of the message owner
"""
return frappe.get_cached_value("Raven User", self.owner, "full_name")
if self.is_bot_message:
return frappe.get_cached_value("Raven User", self.bot, "full_name")
else:
return frappe.get_cached_value("Raven User", self.owner, "full_name")

def send_notification_for_direct_message(self):
"""
Expand Down
Loading