你好,请提供为空的重现场景和代码。

代码如下,多运行几次之后可以发现,只有在这次会话中创建的对话才能看到lastMessage,而以前的对话都得不到lastMessage。如果我也想得到以前的对话的lastMessage难道只能手动查询了吗?

		window.onload = function() {
			//leanCloud
			var APP_ID = '',
				APP_KEY = '';
			AV.init({
				appId: APP_ID,
				appKey: APP_KEY
			});
			var imUserObj;
			var rt = new AV.Realtime({
				appId: APP_ID,
				region: 'cn'
			});
			rt.createIMClient('Tom2').then(function(tom) {
				imUserObj = tom;
				tom.createConversation({
					members: ['Jerry'],
					name: 'Tom3 & Jerry',
				}).then(function(conversation) {
					// 发送消息
					return conversation.send(new AV.TextMessage('耗子,起床!'));
				}).then(function(message) {
					console.log('Tom3 & Jerry', '发送成功!');
					imUserObj.getQuery().containsMembers(['Tom2']).find().then(function(conversations) {
						console.log(conversations);
					}).catch(console.error);
				}).catch(console.error);
				return tom.createConversation({
					members: ['Jerry'],
					name: 'Tom2 & Jerry',
				});
			}).then(function(conversation) {
				// 发送消息
				return conversation.send(new AV.TextMessage('耗子,起床!'));
			}).then(function(message) {
				console.log('Tom2 & Jerry', '发送成功!');
				imUserObj.getQuery().containsMembers(['Tom2']).find().then(function(conversations) {
					console.log(conversations);
				}).catch(console.error);
			}).catch(console.error);
		};