let docs = {
chatid: 'userid1_userid2',
chats: [
{
from: 'user1',
to: 'user2',
message: 'Hii',
time: '2021-06-26T16:14:08.477+00:00'
},
{
from: 'user1',
to: 'user2',
message: 'Listen',
time: '2021-06-26T16:14:09.477+00:00',
deleted_by_userid1: '2021-06-26T16:14:10.477+00:00'
}
]
}
仅当字段 'deleted_by_userid1' 不存在时获取聊天 ID 'userid1_userid2' 的最后一次聊天