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

Commit fa1e37c

Browse files
Sam1301kunall17
authored andcommitted
Fix: Don't convert email to lowercase on db query.
1 parent a571336 commit fa1e37c

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
@@ -109,7 +109,7 @@ public static Person getByEmail(ZulipApp app, String email) {
109109
public static Person getByEmail(Dao<Person, ?> dao, String email) {
110110
try {
111111
return dao.queryBuilder().where()
112-
.eq(Person.EMAIL_FIELD, new SelectArg(email.toLowerCase()))
112+
.eq(Person.EMAIL_FIELD, new SelectArg(email))
113113
.queryForFirst();
114114
} catch (SQLException e) {
115115
throw new RuntimeException(e);

0 commit comments

Comments
 (0)