Co-Authored-By: Algorithm5838 <108630393+Algorithm5838@users.noreply.github.com>
This commit is contained in:
Timothy Jaeryang BaekandAlgorithm5838 committed 2026-03-01 12:50:24 -06:00
1 parent e9011113b4
commit ff86283be0
1 file changed
+1 -4
+1 -4
View File
@@ -790,6 +790,7 @@ def get_event_emitter(request_info, update_db=True):
}, },
room=f"user:{user_id}", room=f"user:{user_id}",
) )
if ( if (
update_db update_db
and message_id and message_id
@@ -799,10 +800,6 @@ def get_event_emitter(request_info, update_db=True):
event_type = event_data.get("type") event_type = event_data.get("type")
if event_type == "status": if event_type == "status":
# Only persist final (done) status to DB; intermediate
# statuses are ephemeral UI-only data sent via socket.
status_data = event_data.get("data", {})
if status_data.get("done", False):
await asyncio.to_thread( await asyncio.to_thread(
Chats.add_message_status_to_chat_by_id_and_message_id, Chats.add_message_status_to_chat_by_id_and_message_id,
request_info["chat_id"], request_info["chat_id"],