[FIX] the created message is the last one in the thread list

bzr revid: mat@openerp.com-20130327154148-sjia6b39yjix6fm1
This commit is contained in:
Martin Trigaux 2013-03-27 16:41:48 +01:00
parent 471d9fddff
commit 038630657c
1 changed files with 1 additions and 1 deletions

View File

@ -734,7 +734,7 @@ openerp.mail = function (session) {
}
// create object and attach to the thread object
thread.message_fetch([["id", "=", message_id]], false, [message_id], function (arg, data) {
var message = thread.create_message_object( data[0] );
var message = thread.create_message_object( data.slice(-1)[0] );
// insert the message on dom
thread.insert_message( message, root ? undefined : self.$el, root );
});