From 62982ce23bb1515049f302e4cb1e9c55235e2b8c Mon Sep 17 00:00:00 2001 From: Kumi Date: Thu, 7 Dec 2023 16:39:04 +0100 Subject: [PATCH] Remove uploading of keys --- src/gptbot/callbacks/roommember.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/gptbot/callbacks/roommember.py b/src/gptbot/callbacks/roommember.py index 57cdd74..302bfe2 100644 --- a/src/gptbot/callbacks/roommember.py +++ b/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?")