mirror of
https://github.com/chatmail/core.git
synced 2026-05-04 22:06:29 +03:00
Improve calls table with FOREIGN KEY, STRICT mode, and better housekeeping query
Co-authored-by: link2xt <18373967+link2xt@users.noreply.github.com>
This commit is contained in:
@@ -509,7 +509,10 @@ impl Context {
|
||||
|
||||
// Loads information about the call given the `Message`.
|
||||
//
|
||||
// If the `Message` is not a call message, returns `None`
|
||||
// If the `Message` is not a call message, returns `None`.
|
||||
//
|
||||
// This function is async because it queries the calls table
|
||||
// to retrieve SDP offers and answers.
|
||||
async fn load_call_by_message(&self, call: Message) -> Result<Option<CallInfo>> {
|
||||
if call.viewtype != Viewtype::Call {
|
||||
// This can happen e.g. if a "call accepted"
|
||||
|
||||
Reference in New Issue
Block a user