test getting last message time

This commit is contained in:
nova 2019-12-14 16:03:04 +05:30
parent d916043e07
commit 601311fcf5

View File

@ -101,6 +101,10 @@ export class ChatModel implements Subject {
else {
log.error('Messages were null');
}
if(this._messagePageMap.get(contactName) == 0)
{
log.info(cVMs[cVMs.length - 1].messageTime)
}
if (cVMs.length != 0) {
// log.debug('page number before = ' + this._messagePageMap.get(contactName)!)
this._messagePageMap.set(contactName, this._messagePageMap.get(contactName)! + 1);