for (BMessage m : messages)
DaoCore.deleteEntity(m);
DaoCore.updateEntity(model);
if (model.getUsers().size() > 2)
{
<BUG>DatabaseReference userThreadRef = FirebasePaths.firebaseRef();
userThreadRef = FirebasePaths.appendPathComponent(userThreadRef, user.getBPath().getPath());
userThreadRef = FirebasePaths.appendPathComponent(userThreadRef, model.getBPath().getPath());
off();</BUG>
messagesOff();

for (BMessage m : messages)
DaoCore.deleteEntity(m);
DaoCore.updateEntity(model);
if (model.getUsers().size() > 2)
{
DatabaseReference userThreadRef = FirebasePaths.firebaseRef()
.child(user.getBPath().getPath())
.child(model.getBPath().getPath());
off();
messagesOff();
