Commit 3eb833e8a5de01de285cb216e3a61ec92da9e5aa

Authored by Adhidarma Hadiwinoto
1 parent 131ea90c8f
Exists in master

matrix.<buddies>.<resources>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -67,10 +67,10 @@ function onBuddy(jid, state, statusText, resource) {
67 67 }
68 68  
69 69 if (!matrix.buddies[jid]) {
70   - matrix.buddies[jid] = {states: {}};
  70 + matrix.buddies[jid] = {resources: {}};
71 71 }
72 72  
73   - matrix.buddies[jid].states[resource] = {
  73 + matrix.buddies[jid].resources[resource] = {
74 74 state: state,
75 75 statusText: statusText,
76 76 lastUpdate: moment().format('YYYY-MM-DD HH:mm:ss')