소스 검색

passing own-id

Rodja Trappe 1 년 전
부모
커밋
c49fc34f9e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examples/chat_app/main.py

+ 1 - 1
examples/chat_app/main.py

@@ -21,7 +21,7 @@ async def main(client: Client):
         stamp = datetime.utcnow().strftime('%X')
         messages.append((user_id, avatar, text.value, stamp))
         text.value = ''
-        chat_messages.refresh()
+        chat_messages.refresh(user_id)
 
     user_id = str(uuid4())
     avatar = f'https://robohash.org/{user_id}?bgset=bg2'