mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-26 08:37:29 +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() {
|
public void markAsSeen() {
|
||||||
|
if (currentUser == null) return;
|
||||||
final DirectThread thread = getThread().getValue();
|
final DirectThread thread = getThread().getValue();
|
||||||
if (thread == null) return;
|
if (thread == null) return;
|
||||||
final List<DirectItem> items = thread.getItems();
|
final List<DirectItem> items = thread.getItems();
|
||||||
|
Loading…
Reference in New Issue
Block a user