From 3a79566f1caf8b8a6448a3cf4fcb78f8bbd3805d Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sat, 24 Jun 2017 10:02:41 +0200 Subject: [PATCH] OmemoManager: Fix typo s/defaulDeviceId/defaultDeviceId/ --- .../org/jivesoftware/smackx/omemo/OmemoManager.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/smack-omemo/src/main/java/org/jivesoftware/smackx/omemo/OmemoManager.java b/smack-omemo/src/main/java/org/jivesoftware/smackx/omemo/OmemoManager.java index dbebf20ce..faff979b0 100644 --- a/smack-omemo/src/main/java/org/jivesoftware/smackx/omemo/OmemoManager.java +++ b/smack-omemo/src/main/java/org/jivesoftware/smackx/omemo/OmemoManager.java @@ -163,13 +163,13 @@ public final class OmemoManager extends Manager { } } - int defaulDeviceId = OmemoService.getInstance().getOmemoStoreBackend().getDefaultDeviceId(user); - if (defaulDeviceId < 1) { - defaulDeviceId = randomDeviceId(); - OmemoService.getInstance().getOmemoStoreBackend().setDefaultDeviceId(user, defaulDeviceId); + int defaultDeviceId = OmemoService.getInstance().getOmemoStoreBackend().getDefaultDeviceId(user); + if (defaultDeviceId < 1) { + defaultDeviceId = randomDeviceId(); + OmemoService.getInstance().getOmemoStoreBackend().setDefaultDeviceId(user, defaultDeviceId); } - return getInstanceFor(connection, defaulDeviceId); + return getInstanceFor(connection, defaultDeviceId); } /**