core: backend autoconnection:
A new Connection/autoconnect_backend param can be set for a profile or component to be started automatically with backend. This is specially useful for components, but can be useful for client profile too (e.g. on Android we need to start profile with backend to get notifications, this part will come with following commits). The new Sqlite.getIndParamValues method allows to retrieve the same parameters for all profiles.
This commit is contained in:
parent
d73fed6f24
commit
1d91db6f2c
1 changed files with 81 additions and 29 deletions
|
|
@ -281,7 +281,7 @@ class InvitationsPlugin(object):
|
|||
except KeyError:
|
||||
pass
|
||||
else:
|
||||
yield self.host.connect(guest_profile, password)
|
||||
yield defer.ensureDeferred(self.host.connect(guest_profile, password))
|
||||
guest_client = self.host.getClient(guest_profile)
|
||||
yield id_plugin.setIdentity(guest_client, {'nick': name})
|
||||
yield self.host.disconnect(guest_profile)
|
||||
|
|
|
|||
Loading…
Reference in a new issue