Skip to content

Commit

Permalink
fix: a user in different groups has the same session (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanfangyuan4396 authored Dec 8, 2024
1 parent 445058e commit 1f30bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channel/chat_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _compose_context(self, ctype: ContextType, content, **kwargs):
]
):
group_chat_in_one_session = conf().get("group_chat_in_one_session", [])
session_id = f"{cmsg.from_user_id}@@{group_id}" # 当群聊未共享session时,session_id为user_id与group_id的组合,用于区分不同群聊以及单聊
session_id = f"{cmsg.actual_user_id}@@{group_id}" # 当群聊未共享session时,session_id为user_id与group_id的组合,用于区分不同群聊以及单聊
if any(
[
group_name in group_chat_in_one_session,
Expand Down

0 comments on commit 1f30bb3

Please sign in to comment.