Fix json serialization for group message error

Fixes #6919
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-10-02 10:35:49 -07:00
parent 2e56a0aa70
commit e145875164
2 changed files with 4 additions and 0 deletions

View file

@ -2,6 +2,7 @@ package org.thoughtcrime.securesms.database.documents;
import android.util.Log;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
@ -38,6 +39,7 @@ public class IdentityKeyMismatch {
this.identityKey = identityKey;
}
@JsonIgnore
public Address getAddress() {
return Address.fromSerialized(address);
}

View file

@ -1,5 +1,6 @@
package org.thoughtcrime.securesms.database.documents;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.thoughtcrime.securesms.database.Address;
@ -15,6 +16,7 @@ public class NetworkFailure {
public NetworkFailure() {}
@JsonIgnore
public Address getAddress() {
return Address.fromSerialized(address);
}