From 3eb833e8a5de01de285cb216e3a61ec92da9e5aa Mon Sep 17 00:00:00 2001
From: Adhidarma Hadiwinoto <me@adhisimon.org>
Date: Thu, 27 Oct 2016 14:25:06 +0700
Subject: [PATCH] matrix.<buddies>.<resources>

---
 adaptor-xmpp.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/adaptor-xmpp.js b/adaptor-xmpp.js
index 871101f..5c146fb 100644
--- a/adaptor-xmpp.js
+++ b/adaptor-xmpp.js
@@ -67,10 +67,10 @@ function onBuddy(jid, state, statusText, resource) {
     }
 
     if (!matrix.buddies[jid]) {
-        matrix.buddies[jid] = {states: {}};
+        matrix.buddies[jid] = {resources: {}};
     }
 
-    matrix.buddies[jid].states[resource] = {
+    matrix.buddies[jid].resources[resource] = {
         state: state,
         statusText: statusText,
         lastUpdate: moment().format('YYYY-MM-DD HH:mm:ss')
-- 
1.9.0