mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 06:37:30 +00:00
Null check current user. Fixes 1 part of https://github.com/austinhuang0131/barinsta/issues/816
This commit is contained in:
parent
ab487b79ae
commit
565a8d3dd6
@ -279,6 +279,7 @@ public class DirectThreadViewModel extends AndroidViewModel {
|
||||
}
|
||||
|
||||
public void markAsSeen() {
|
||||
if (currentUser == null) return;
|
||||
final DirectThread thread = getThread().getValue();
|
||||
if (thread == null) return;
|
||||
final List<DirectItem> items = thread.getItems();
|
||||
|
Loading…
Reference in New Issue
Block a user