1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-22 06:37:30 +00:00
This commit is contained in:
Ammar Githam 2021-03-25 21:14:08 +09:00
parent 926ebca9e9
commit 8f72796891

View File

@ -264,7 +264,10 @@ public final class ThreadManager {
}
private List<User> getUsersWithCurrentUser(final DirectThread t) {
final ImmutableList.Builder<User> builder = ImmutableList.<User>builder().add(currentUser);
final ImmutableList.Builder<User> builder = ImmutableList.<User>builder();
if (currentUser != null) {
builder.add(currentUser);
}
final List<User> users = t.getUsers();
if (users != null) {
builder.addAll(users);