mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-27 23:55:49 +00:00
Only subscribe to accounts if the Account object is set up correctly.
This commit is contained in:
@@ -61,7 +61,7 @@ function Account(remote, account) {
|
||||
this.on('removeListener', listener_removed);
|
||||
|
||||
function prepare_subscribe(request) {
|
||||
if (self._subs) {
|
||||
if (self._account.is_valid() && self._subs) {
|
||||
request.accounts(self._account_id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user