Commit 16fdda7e authored by Finn Herzfeld's avatar Finn Herzfeld 🌵

Don't resolve session store

parent 49ef74cf
Pipeline #4068 failed with stages
in 6 minutes and 13 seconds
......@@ -113,7 +113,6 @@ public class AccountData {
if(address == null) {
address = new JsonAddress(username);
}
axolotlStore.sessionStore.resolveAll();
if(axolotlStore.identityKeyStore.dedup()) {
save();
}
......@@ -239,13 +238,15 @@ public class AccountData {
}
public SignalServiceAddress resolve(SignalServiceAddress a) {
if (a.matches(address.getSignalServiceAddress())) {
if(a.matches(address.getSignalServiceAddress())) {
return address.getSignalServiceAddress();
}
for(JsonAddress i : recipientStore) {
if(i.getSignalServiceAddress().matches(a)) {
logger.debug("Updating " + i.toRedactedString());
i.update(a);
logger.debug("Updated to " + i.toRedactedString());
return i.getSignalServiceAddress();
}
}
......
......@@ -142,12 +142,6 @@ public class SessionStore implements org.whispersystems.libsignal.state.SessionS
sessions.removeIf(info -> info.address.matches(serviceAddress));
}
public void resolveAll() {
for(SessionInfo s : sessions) {
s.address = resolver.resolve(s.address);
}
}
public static class SessionStoreDeserializer extends JsonDeserializer<SessionStore> {
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment