mirror of
https://github.com/mastodon/mastodon-android.git
synced 2025-01-14 02:16:07 +01:00
Merge pull request #491 from mishnz/master
Second fix for MIME64 inconsistency in serverKey.
This commit is contained in:
commit
60517b00f3
@ -162,7 +162,9 @@ public class PushSubscriptionManager{
|
||||
@Override
|
||||
public void onSuccess(PushSubscription result){
|
||||
MastodonAPIController.runInBackground(()->{
|
||||
serverKey=deserializeRawPublicKey(Base64.decode(result.serverKey, Base64.DEFAULT));
|
||||
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);
|
||||
if(session==null)
|
||||
|
Loading…
Reference in New Issue
Block a user