SatCat commited on
Commit
47af38d
1 Parent(s): ce157e2

add reversed in msg restore

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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()