From 6a57e07acca7e7c403effede2d8b6cd030e9054a Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Mon, 31 Oct 2016 20:16:46 +0700 Subject: [PATCH] perbaikan salah nama variabel --- matrix-util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix-util.js b/matrix-util.js index eba84f5..88199fb 100644 --- a/matrix-util.js +++ b/matrix-util.js @@ -140,7 +140,7 @@ MatrixUtil.prototype._updateLastMessage = function(partner, msg, direction) { matrix.buddies[partner] = {}; } - matrix.buddies[destination]['last_' + direction] = { + matrix.buddies[partner]['last_' + direction] = { msg: msg, lastUpdate: moment().format('YYYY-MM-DD HH:mm:ss') } -- 1.9.0