[quick_replies] Fix getting connected state, remove obsolete README.md

This commit is contained in:
Daniel Brötzmann
2020-03-24 19:38:28 +01:00
parent 9623a4ed18
commit 455f6adf23
2 changed files with 2 additions and 3 deletions

View File

@@ -54,8 +54,8 @@ class QuickRepliesPlugin(GajimPlugin):
for base in self.controls:
if base.chat_control != chat_control:
continue
base.button.set_sensitive(chat_control.contact.show != 'offline' \
and app.connections[chat_control.account].connected > 0)
base.button.set_sensitive(
app.account_is_connected(chat_control.account))
class Base(object):