mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-25 23:20:53 +01:00
Fixed importing swipe left/right target
This commit is contained in:
@@ -89,6 +89,7 @@ public class EntityIdentity {
|
||||
|
||||
public JSONObject toJSON() throws JSONException {
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("id", id);
|
||||
json.put("name", name);
|
||||
json.put("email", email);
|
||||
json.put("display", display);
|
||||
@@ -122,6 +123,7 @@ public class EntityIdentity {
|
||||
|
||||
public static EntityIdentity fromJSON(JSONObject json) throws JSONException {
|
||||
EntityIdentity identity = new EntityIdentity();
|
||||
// id
|
||||
identity.name = json.getString("name");
|
||||
identity.email = json.getString("email");
|
||||
if (json.has("display"))
|
||||
|
||||
Reference in New Issue
Block a user