mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-27 21:24:42 +00:00
Consider empty usernames as absent.
This commit is contained in:
@@ -666,7 +666,7 @@ public class Recipient {
|
||||
|
||||
public @NonNull Optional<String> getUsername() {
|
||||
if (FeatureFlags.usernames()) {
|
||||
return Optional.ofNullable(username);
|
||||
return OptionalUtil.absentIfEmpty(username);
|
||||
} else {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user