encryption: Stub functions for encrypted messages.
This commit is contained in:
parent
320f490273
commit
8a3bda9797
6 changed files with 107 additions and 4 deletions
7
main.py
7
main.py
|
|
@ -410,11 +410,12 @@ def room_input_cb(server_name, buffer, input_data):
|
|||
room_id = key_from_value(server.buffers, buffer)
|
||||
room = server.rooms[room_id]
|
||||
|
||||
if room.encrypted:
|
||||
return W.WEECHAT_RC_OK
|
||||
|
||||
formatted_data = Formatted.from_input_line(input_data)
|
||||
|
||||
if room.encrypted:
|
||||
server.send_room_message(room_id, formatted_data)
|
||||
return W.WEECHAT_RC_OK
|
||||
|
||||
message = MatrixSendMessage(
|
||||
server.client, room_id=room_id, formatted_message=formatted_data)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue