Added SMS & Threads records high-level API

This commit is contained in:
Mati committed 2019-06-10 09:08:55 +02:00
1 parent 080400505d
commit c18aa279f9
6 files changed
+186 -25

No files matched your search

+3
View File
@@ -115,6 +115,9 @@ std::unique_ptr<std::vector<ThreadRecord>> ThreadRecordInterface::GetLimitOffset
ThreadRecord ThreadRecordInterface::GetByID(uint32_t id) {
auto rec = smsDB->threads.GetByID(id);
if(rec.ID == 0){
return ThreadRecord{};
}
return ThreadRecord{
.dbID = rec.ID,