Skip to content

Commit 4992b3f

Browse files
Fixed Issue when no messages exists it got stucked in loading screen
1 parent 150e976 commit 4992b3f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ async def websocket_endpoint(websocket: WebSocket):
5454
rows = cursor.fetchall()
5555

5656
for name, text in reversed(rows):
57-
await websocket.send_text(json.dumps({
58-
"name": name,
59-
"text": text
60-
}))
57+
await websocket.send_text(json.dumps({
58+
"name": name,
59+
"text": text
60+
}))
6161

6262
# tell client history is finished
6363
await websocket.send_text(json.dumps({

0 commit comments

Comments
 (0)