Skip to content

Commit

Permalink
Fix NPE when syncing archived flag from linked devices
Browse files Browse the repository at this point in the history
Fixes #306
  • Loading branch information
valldrac committed May 10, 2024
1 parent 53c2b06 commit f3a62bb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ public DeviceContact read() throws IOException {
inboxPosition = Optional.of(details.inboxPosition);
}

archived = details.archived;
if (details.archived != null) {
archived = details.archived;
}

return new DeviceContact(aci, e164, name, avatar, color, verified, profileKey, expireTimer, inboxPosition, archived);
}
Expand Down

0 comments on commit f3a62bb

Please sign in to comment.