Commit 321a2b54 authored by Dicson's avatar Dicson

allow multiline invitation messages

parent 7af87739
......@@ -1008,8 +1008,9 @@ def __init__(self, account=None, jid=None, user_nick=None, group=None):
if self.account:
message_buffer = self.message_textview.get_buffer()
message_buffer.set_text(helpers.get_subscription_request_msg(
msg = helpers.from_one_line(helpers.get_subscription_request_msg(
self.account))
message_buffer.set_text(msg)
gajim.ged.register_event_handler('gateway-prompt-received', ged.GUI1,
self._nec_gateway_prompt_received)
......@@ -1105,6 +1106,7 @@ def _add_jid(self, jid, type_):
start_iter = message_buffer.get_start_iter()
end_iter = message_buffer.get_end_iter()
message = message_buffer.get_text(start_iter, end_iter).decode('utf-8')
message = helpers.to_one_line(message)
if self.save_message_checkbutton.get_active():
gajim.config.set_per('accounts', self.account,
'subscription_request_msg', message)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment