Skip to content

Commit

Permalink
feat(Discover/TrendingLinks): disable timeline on non 4.3.0 servers
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed Jun 15, 2024
1 parent d5085c5 commit 4392ce2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ public void clearImage(int index){

@Override
public void onClick(){
//TODO: enable timeline for all servers once 4.3.0 is released
if(getInstance().isEmpty() ||
!getInstance().get().version.contains("4.3.0")){
UiUtils.launchWebBrowser(getActivity(), item.url);
return;
}
Bundle args=new Bundle();
args.putString("account", accountID);
args.putParcelable("trendingLink", Parcels.wrap(item));
Expand Down

0 comments on commit 4392ce2

Please sign in to comment.