Commit b56e7b1fa4e7b83a7f7ab4ef5dc23f22d1477f2a
1 parent
6a57e07acc
Exists in
master
refactor lastUpdate jadi last_update
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
matrix-util.js
... | ... | @@ -67,7 +67,7 @@ MatrixUtil.prototype.updateBuddyState = function(jid, state, statusText, resourc |
67 | 67 | matrix.buddies[jid]['resources'][resource] = { |
68 | 68 | state: state, |
69 | 69 | statusText: statusText, |
70 | - lastUpdate: moment().format('YYYY-MM-DD HH:mm:ss') | |
70 | + last_update: moment().format('YYYY-MM-DD HH:mm:ss') | |
71 | 71 | } |
72 | 72 | } |
73 | 73 | catch(e) { |
... | ... | @@ -142,7 +142,7 @@ MatrixUtil.prototype._updateLastMessage = function(partner, msg, direction) { |
142 | 142 | |
143 | 143 | matrix.buddies[partner]['last_' + direction] = { |
144 | 144 | msg: msg, |
145 | - lastUpdate: moment().format('YYYY-MM-DD HH:mm:ss') | |
145 | + last_update: moment().format('YYYY-MM-DD HH:mm:ss') | |
146 | 146 | } |
147 | 147 | } |
148 | 148 |