mirror of
https://github.com/KokaKiwi/BarInsta
synced 2025-11-20 21:06:32 +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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue