added models Thread and ThreadFiles in thread plugin
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user