diff --git a/backend/open_webui/socket/encryption.py b/backend/open_webui/socket/encryption.py index b3ca7ba7b7..c08c6a9dd2 100644 --- a/backend/open_webui/socket/encryption.py +++ b/backend/open_webui/socket/encryption.py @@ -368,6 +368,7 @@ class Relay: return await self.reserve(action, sid, user, channel, data, state) require(state and data.get('session') == state['session'] and self.local.get(sid) == channel) pid = data.get('participation') + require(isinstance(pid, str)) member = state['members'].get(pid) require(member and member['sid'] == sid and member['user'] == user.id) member['seen'] = time.time()