Skip to content

Commit

Permalink
fixed handle_message in observer
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonKirill committed Feb 20, 2025
1 parent 278c6c6 commit 0c51a7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/klatchat_observer/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,10 +547,10 @@ def handle_message(self, data: dict):
recipient_data = {}

if not self._should_skip_recipient_detection(data=data):
recipient_data = self.get_recipient_from_bound_service(
data.get("bound_service", "")
) or self.get_recipient_from_message(
recipient_data = self.get_recipient_from_message(
message=data.get("messageText") or data.get("message_body")
) or self.get_recipient_from_bound_service(
data.get("bound_service", "")
)
data["recipient"] = recipient_data.pop("recipient", None)

Expand Down

0 comments on commit 0c51a7e

Please sign in to comment.