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:
copilot-swe-agent[bot]
2025-11-06 20:14:49 +00:00
parent 19be18dcbf
commit c6a871c64a
3 changed files with 12 additions and 8 deletions

View File

@@ -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"