Update gajim-remote new command name, delete unused local var
This commit is contained in:
parent
4d9e58a580
commit
8f9643b3bc
2 changed files with 2 additions and 3 deletions
|
@ -259,7 +259,7 @@ class GajimRemote:
|
||||||
def print_result(self, res):
|
def print_result(self, res):
|
||||||
''' Print retrieved result to the output '''
|
''' Print retrieved result to the output '''
|
||||||
if res is not None:
|
if res is not None:
|
||||||
if self.command in ('open_chat', 'send_message', 'send_single_message', 'start_chat'):
|
if self.command in ('open_chat', 'send_chat_message', 'send_single_message', 'start_chat'):
|
||||||
if self.command in ('send_message', 'send_single_message'):
|
if self.command in ('send_message', 'send_single_message'):
|
||||||
self.argv_len -= 2
|
self.argv_len -= 2
|
||||||
|
|
||||||
|
|
|
@ -195,10 +195,9 @@ class SignalObject(dbus.service.Object):
|
||||||
keyID = ''
|
keyID = ''
|
||||||
|
|
||||||
connected_account, contact = self.get_account_and_contact(account, jid)
|
connected_account, contact = self.get_account_and_contact(account, jid)
|
||||||
|
|
||||||
if connected_account:
|
if connected_account:
|
||||||
connection = gajim.connections[connected_account]
|
connection = gajim.connections[connected_account]
|
||||||
res = connection.send_message(jid, message, keyID, type, subject)
|
connection.send_message(jid, message, keyID, type, subject)
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue