From 5836e28e04456249bef7421aa08e33f866664ebc Mon Sep 17 00:00:00 2001 From: Bartosz Date: Wed, 25 Jan 2023 13:06:49 +0100 Subject: [PATCH] [MOS-855] Fix weird behavior of messages After thread was deleted, messages were still in DB and so on --- module-db/Tables/SMSTable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module-db/Tables/SMSTable.cpp b/module-db/Tables/SMSTable.cpp index cb25477d6b5b4e3be66eee5f78848cf459bbf796..fbf85b340bb5c15c789617bd06370b74fdf083fa 100644 --- a/module-db/Tables/SMSTable.cpp +++ b/module-db/Tables/SMSTable.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved. +// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "SMSTable.hpp" @@ -49,7 +49,7 @@ bool SMSTable::removeByField(SMSTableFields field, const char *str) return false; } - return db->execute("DELETE FROM sms where %q=" u32_ ";", fieldName.c_str(), str); + return db->execute("DELETE FROM sms where %q=" str_ ";", fieldName.c_str(), str); } bool SMSTable::update(SMSTableRow entry)