From 321a2b54705105b8356225630d1d323f124e32c7 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Wed, 20 Apr 2011 22:45:03 +0400 Subject: [PATCH] allow multiline invitation messages --- src/dialogs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dialogs.py b/src/dialogs.py index 725a36297..78a703dd4 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -1008,8 +1008,9 @@ class AddNewContactWindow: 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 @@ class AddNewContactWindow: 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)