~aleteoryx/muditaos

5836e28e04456249bef7421aa08e33f866664ebc — Bartosz 2 years ago 1d80764
[MOS-855] Fix weird behavior of messages

After thread was deleted, messages were still in DB
and so on
1 files changed, 2 insertions(+), 2 deletions(-)

M module-db/Tables/SMSTable.cpp
M module-db/Tables/SMSTable.cpp => module-db/Tables/SMSTable.cpp +2 -2
@@ 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)