Spaces:
Running
Running
add reversed in msg restore
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ class MsgBase():
|
|
56 |
async def send_all_msg(self, ws):
|
57 |
""" Restore all messages in new page or reloaded page"""
|
58 |
ws_list.append(ws)
|
59 |
-
for msg in self.msg_history:
|
60 |
await ws.send_text(msg)
|
61 |
|
62 |
mbase = MsgBase()
|
|
|
56 |
async def send_all_msg(self, ws):
|
57 |
""" Restore all messages in new page or reloaded page"""
|
58 |
ws_list.append(ws)
|
59 |
+
for msg in reversed(self.msg_history):
|
60 |
await ws.send_text(msg)
|
61 |
|
62 |
mbase = MsgBase()
|