mbMessagePersistence.update(message);
userIds.add(message.getUserId());
if (oldStatus == WorkflowConstants.STATUS_APPROVED) {
assetEntryLocalService.updateVisible(
MBMessage.class.getName(), message.getMessageId(), true);
<BUG>}
trashVersionLocalService.deleteTrashVersion(trashVersion);
Indexer indexer = IndexerRegistryUtil.nullSafeGetIndexer(</BUG>
MBMessage.class);
indexer.reindex(message);

mbMessagePersistence.update(message);
userIds.add(message.getUserId());
if (oldStatus == WorkflowConstants.STATUS_APPROVED) {
assetEntryLocalService.updateVisible(
MBMessage.class.getName(), message.getMessageId(), true);
}
if (trashVersion != null) {
trashVersionLocalService.deleteTrashVersion(trashVersion);
}
Indexer indexer = IndexerRegistryUtil.nullSafeGetIndexer(
MBMessage.class);
indexer.reindex(message);
