✨ Track mail replies waiting for import, mail close event and query indexes
- ✨ Support bot text messages for mail conversations
- 🗄️ Add the
pending_importflag tolhc_mailconv_conversationvia update_364.sql, both install scripts,structure.json,db.dbml, the POS definition,swagger.jsonand the modelgetState() - 📤 Set
pending_import = 1inerLhcoreClassMailconvValidator::sendReply()when the sent folder copy was stored, so an operator reply becomes visible only after the background import fetches it back; a failed copy keeps it at0 - 📥 Reset
pending_import = 0inerLhcoreClassMailconvParserwhenever a newer message is imported for the conversation, and on merge/un-merge inMergeHelper - 🖥️ Show a cloud-download indicator in the mail conversation list while a reply is waiting to be imported
- 🔗 Dispatch the
mail.conversation_closedevent fromerLhcoreClassMailconvWorkflow::closeConversation()with aclose_sourceargument (operator,auto_close,import,system) so bot workflows and webhooks can react to closes, and pass the close source from the auto-close cron and from imports - 🧪 Add the missing
mail.conversation_closedevent template to the webhook dispatch tool - 🚀 Add composite indexes to speed up frequent lookups:
evaluated_user_id_ctime(evaluated_user_id,ctime,form_id,attr_int_1) onlh_abstract_form_collectedfor agent/chat QA aggregations,api_key_active(api_key,active) onlh_abstract_rest_api_keyreplacing theapi_keyindex for active key lookups, andnick_btype(nick,btype) onlh_chat_blocked_userfor blocked user lookups
Full Changelog: 4.98v...4.99v