|
@ -986,7 +986,9 @@ chat_manager.get_messages = function (options) { |
|
|
if ('ids' in options) { |
|
|
if ('ids' in options) { |
|
|
// get messages from their ids (chatter is the main use case)
|
|
|
// get messages from their ids (chatter is the main use case)
|
|
|
return this._fetchDocumentMessages(options.ids, options).then(function(result) { |
|
|
return this._fetchDocumentMessages(options.ids, options).then(function(result) { |
|
|
chat_manager.mark_as_read(options.ids); |
|
|
|
|
|
|
|
|
if (options.shouldMarkAsRead) { |
|
|
|
|
|
chat_manager.mark_as_read(options.ids); |
|
|
|
|
|
} |
|
|
return result; |
|
|
return result; |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|