SFragment: open browser if attachment type is unknown

This commit is contained in:
Alibek Omarov 2020-10-05 17:24:49 +03:00
parent 4eb56b713c
commit db18d55619
1 changed files with 1 additions and 3 deletions

View File

@ -426,9 +426,7 @@ public abstract class SFragment extends BaseFragment implements Injectable {
break;
}
case UNKNOWN: {
/* Intentionally do nothing. This case is here is to handle when new attachment
* types are added to the API before code is added here to handle them. So, the
* best fallback is to just show the preview and ignore requests to view them. */
onViewUrl(active.getUrl());
break;
}
}