浏览代码

Remove uploading of keys

Kumi 11 月之前
父节点
当前提交
62982ce23b
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      src/gptbot/callbacks/roommember.py

+ 0 - 4
src/gptbot/callbacks/roommember.py

@@ -1,10 +1,6 @@
 from nio import RoomMemberEvent, MatrixRoom, KeysUploadError
 
 async def roommember_callback(room: MatrixRoom, event: RoomMemberEvent, bot):
-    upload = await bot.matrix_client.keys_upload()
-    if isinstance(upload, KeysUploadError):
-        bot.logger.log(f"Failed to upload keys: {e.message}")
-
     if event.membership == "leave":
         bot.logger.log(f"User {event.state_key} left room {room.room_id} - am I alone now?")