mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-26 10:28:38 -06:00
fixes conversations without any messages.
This commit is contained in:
parent
592324370d
commit
8f60b802ad
@ -30,7 +30,7 @@ export class KwikController {
|
||||
id: chat.id,
|
||||
labels: chat.labels,
|
||||
owner: chat.owner,
|
||||
lastAllMsgTimestamp: lastMsg[0].messageTimestamp,
|
||||
lastAllMsgTimestamp: lastMsg.length > 0 ? lastMsg[0].messageTimestamp : 0,
|
||||
};
|
||||
}),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user