[FIX] the created message is the last one in the thread list
bzr revid: mat@openerp.com-20130327154148-sjia6b39yjix6fm1
This commit is contained in:
parent
471d9fddff
commit
038630657c
|
@ -734,7 +734,7 @@ openerp.mail = function (session) {
|
||||||
}
|
}
|
||||||
// create object and attach to the thread object
|
// create object and attach to the thread object
|
||||||
thread.message_fetch([["id", "=", message_id]], false, [message_id], function (arg, data) {
|
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
|
// insert the message on dom
|
||||||
thread.insert_message( message, root ? undefined : self.$el, root );
|
thread.insert_message( message, root ? undefined : self.$el, root );
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue