return deferred.promise();
}
public Promise<Void, BError, Void> recoverThread(){
if (DEBUG) Timber.v("recoverThread");
final Deferred<Void, BError, Void> deferred = new DeferredObject<>();
<BUG>DatabaseReference threadUserRef = FirebasePaths.threadRef(entityId);
threadUserRef = FirebasePaths.appendPathComponent(threadUserRef, BFirebaseDefines.Path.BUsersPath);
threadUserRef = FirebasePaths.appendPathComponent(threadUserRef, BNetworkManager.sharedManager().getNetworkAdapter().currentUserModel().getEntityID());
threadUserRef = FirebasePaths.appendPathComponent(threadUserRef, BDefines.Keys.BDeleted);
threadUserRef.removeValue();</BUG>
this.model.setDeleted(false);

return deferred.promise();
}
public Promise<Void, BError, Void> recoverThread(){
if (DEBUG) Timber.v("recoverThread");
final Deferred<Void, BError, Void> deferred = new DeferredObject<>();
DatabaseReference threadUserRef = FirebasePaths.threadRef(entityId)
.child(BFirebaseDefines.Path.BUsersPath)
.child(BNetworkManager.sharedManager().getNetworkAdapter().currentUserModel().getEntityID())
.child(BDefines.Keys.BDeleted);
threadUserRef.removeValue();
this.model.setDeleted(false);
