mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-10 14:24:05 +01:00
rename method to update PushState for a user
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
a37f947eb9
commit
dd155db6ab
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user