Inline the username flag.

This commit is contained in:
Greyson Parrelli
2024-02-06 10:34:40 -05:00
committed by Cody Henthorne
parent bd3b779282
commit 8ad77ac7aa
11 changed files with 14 additions and 51 deletions

View File

@@ -680,11 +680,7 @@ public class Recipient {
}
public @NonNull Optional<String> getUsername() {
if (FeatureFlags.usernames()) {
return OptionalUtil.absentIfEmpty(username);
} else {
return Optional.empty();
}
return OptionalUtil.absentIfEmpty(username);
}
public @NonNull Optional<String> getE164() {