added models Thread and ThreadFiles in thread plugin

This commit is contained in:
2021-05-21 23:06:48 +02:00
parent 86ef2529b1
commit b2cffa39e1
12 changed files with 478 additions and 162 deletions

View File

@@ -112,11 +112,13 @@ void Reply::MakePost()
// !! jak bedzie dostepne assert
// ASSERT(files_dir)
if( tdb->GetThread(cur->request->item.id, thread) != WINIX_ERR_OK )
thread = Thread::get_thread(model_connector, cur->request->item.id);
if( !thread.found() )
{
thread.Clear();
thread.clear();
thread.file_id = cur->request->item.id;
tdb->AddThread(thread);
thread.insert();
}
answer.Clear();