From 66262f2f755794e675d3cdda4e55ef72a7a8155d Mon Sep 17 00:00:00 2001 From: fmodf Date: Thu, 15 Aug 2024 18:26:35 +0200 Subject: [PATCH] wip --- .../AppData/Client/Client+MartinMessages.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ConversationsClassic/AppData/Client/Client+MartinMessages.swift b/ConversationsClassic/AppData/Client/Client+MartinMessages.swift index a5b44c0..67fb35f 100644 --- a/ConversationsClassic/AppData/Client/Client+MartinMessages.swift +++ b/ConversationsClassic/AppData/Client/Client+MartinMessages.swift @@ -69,6 +69,12 @@ final class ClientMartinMessagesManager { ) // Save message + Task { + await updateMsgInDB(msg) + } + } + + private func updateMsgInDB(_ msg: Message) async { Task { do { try await msg.save()