Skip to content

Commit faebf60

Browse files
authored
fix: Third party access without conversation user data (#3632)
1 parent 8adca34 commit faebf60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/chat/serializers/chat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def chat(self, instance: dict, base_to_response: BaseToResponse = SystemToRespon
327327
ChatMessageSerializers(data=instance).is_valid(raise_exception=True)
328328
chat_info = self.get_chat_info()
329329
chat_info.get_application()
330-
chat_info.get_chat_user()
330+
chat_info.get_chat_user((instance.get('form_data') or {}).get('akser'))
331331
self.is_valid_chat_id(chat_info)
332332
self.is_valid_chat_user()
333333
if chat_info.application.type == ApplicationTypeChoices.SIMPLE:

0 commit comments

Comments
 (0)