Remove unused code that caused a crash for some users ¯\_(ツ)_/¯

This commit is contained in:
Grishka 2023-07-02 18:52:46 +03:00
parent fe142c4626
commit e7d3c60bac
1 changed files with 0 additions and 5 deletions

View File

@ -87,7 +87,6 @@ public class PushSubscriptionManager{
private String accountID; private String accountID;
private PrivateKey privateKey; private PrivateKey privateKey;
private PublicKey publicKey; private PublicKey publicKey;
private PublicKey serverKey;
private byte[] authKey; private byte[] authKey;
public PushSubscriptionManager(String accountID){ public PushSubscriptionManager(String accountID){
@ -162,10 +161,6 @@ public class PushSubscriptionManager{
@Override @Override
public void onSuccess(PushSubscription result){ public void onSuccess(PushSubscription result){
MastodonAPIController.runInBackground(()->{ MastodonAPIController.runInBackground(()->{
result.serverKey=result.serverKey.replace('/','_');
result.serverKey=result.serverKey.replace('+','-');
serverKey=deserializeRawPublicKey(Base64.decode(result.serverKey, Base64.URL_SAFE));
AccountSession session=AccountSessionManager.getInstance().tryGetAccount(accountID); AccountSession session=AccountSessionManager.getInstance().tryGetAccount(accountID);
if(session==null) if(session==null)
return; return;