Remove uploading of keys

This commit is contained in:
Kumi 2023-12-07 16:39:04 +01:00
parent d4cf70b273
commit 62982ce23b
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -1,10 +1,6 @@
from nio import RoomMemberEvent, MatrixRoom, KeysUploadError from nio import RoomMemberEvent, MatrixRoom, KeysUploadError
async def roommember_callback(room: MatrixRoom, event: RoomMemberEvent, bot): 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": if event.membership == "leave":
bot.logger.log(f"User {event.state_key} left room {room.room_id} - am I alone now?") bot.logger.log(f"User {event.state_key} left room {room.room_id} - am I alone now?")