rename method to update PushState for a user

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2022-12-14 14:47:55 +01:00 committed by Andy Scherzinger
parent a37f947eb9
commit dd155db6ab
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B

View File

@ -311,7 +311,7 @@ public class PushUtils {
public void onNext(@NonNull Void aVoid) {
try {
Log.d(TAG, "pushToken successfully registered at pushproxy.");
createOrUpdateUser(proxyMap, user);
updatePushStateForUser(proxyMap, user);
} catch (IOException e) {
Log.e(TAG, "IOException while updating user", e);
}
@ -330,7 +330,7 @@ public class PushUtils {
});
}
private void createOrUpdateUser(Map<String, String> proxyMap, User user) throws IOException {
private void updatePushStateForUser(Map<String, String> proxyMap, User user) throws IOException {
PushConfigurationState pushConfigurationState = new PushConfigurationState();
pushConfigurationState.setPushToken(proxyMap.get("pushToken"));
pushConfigurationState.setDeviceIdentifier(proxyMap.get("deviceIdentifier"));