if (DEBUG) Timber.v("Thread is Deleted, ID: %s", threadId);
BThreadWrapper wrapper = new BThreadWrapper(thread);
wrapper.threadDeletedDate().done(new DoneCallback<Long>() {
@Override
public void onDone(Long aLong) {
<BUG>Query query = FirebasePaths.appendPathComponent(threadRef, BFirebaseDefines.Path.BMessagesPath);
if (aLong==null)</BUG>
{
query = query.limitToLast(BDefines.MAX_MESSAGES_TO_PULL);
}

if (DEBUG) Timber.v("Thread is Deleted, ID: %s", threadId);
BThreadWrapper wrapper = new BThreadWrapper(thread);
wrapper.threadDeletedDate().done(new DoneCallback<Long>() {
@Override
public void onDone(Long aLong) {
Query query = threadRef.child(BFirebaseDefines.Path.BMessagesPath);
if (aLong==null)
{
query = query.limitToLast(BDefines.MAX_MESSAGES_TO_PULL);
}
