Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 0f6878c

Browse files
Sam1301kunall17
authored andcommitted
Fix: Crash on dev server login.
Since we are now also including sender id while creating the person object in Person.getOrUpdate(), ormlite createOrUpdate is safe to execute.
1 parent de70726 commit 0f6878c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/zulip/android/models/Person.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public static Person getOrUpdate(ZulipApp app, String email, String name,
153153
// use the person id passed to generate person skeleton object which is consistent
154154
// with server id.
155155
person.setId(personId);
156-
app.getDao(Person.class).create(person);
156+
app.getDao(Person.class).createOrUpdate(person);
157157
} else {
158158
boolean changed = false;
159159
if (name != null && !name.equals(person.name)) {

0 commit comments

Comments
 (0)