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

Commit 9b65e07

Browse files
committed
Fix:Removal of persons from drawer on All PM
When new message is received, sender is updated in people table, isActive field is false by default, so make it true. Fix: #262
1 parent 06f0604 commit 9b65e07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ public static Person getOrUpdate(ZulipApp app, String email, String name,
160160
// use the person id passed to generate person skeleton object which is consistent
161161
// with server id.
162162
person.setId(personId);
163+
person.setActive(true);
163164
app.getDao(Person.class).createOrUpdate(person);
164165
} else {
165166
boolean changed = false;
@@ -172,6 +173,7 @@ public static Person getOrUpdate(ZulipApp app, String email, String name,
172173
changed = true;
173174
}
174175
if (changed) {
176+
person.setActive(true);
175177
app.getDao(Person.class).update(person);
176178
}
177179
}

0 commit comments

Comments
 (0)