...
|
...
|
@@ -39,13 +39,11 @@ exports.saveMessage = (encryptedUid, conversationId, content) => { |
|
|
* @param [int] endTime
|
|
|
*/
|
|
|
exports.fetchImHistory = (encryptedUid, endTime, pageSize, startTime) => {
|
|
|
pageSize = pageSize || 10;
|
|
|
|
|
|
let params = {
|
|
|
pageSize,
|
|
|
encryptedUid
|
|
|
};
|
|
|
|
|
|
|
|
|
_.forEach({startTime, endTime}, (val, key) => {
|
|
|
val && (params[key] = val);
|
|
|
});
|
...
|
...
|
|