mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Request.accounts will append rather than overwrite
This commit is contained in:
@@ -248,9 +248,9 @@ Request.prototype.accounts = function (accounts, realtime) {
|
||||
});
|
||||
|
||||
if (realtime) {
|
||||
this.message.rt_accounts = processedAccounts;
|
||||
this.message.rt_accounts = (this.message.rt_accounts || []).concat(processedAccounts);
|
||||
} else {
|
||||
this.message.accounts = processedAccounts;
|
||||
this.message.accounts = (this.message.accounts || []).concat(processedAccounts);
|
||||
}
|
||||
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user