fix user popup sometimes crashing
This commit is contained in:
parent
d1dfa9c8cf
commit
db2b357f47
|
@ -32,7 +32,7 @@ extension PresenceExtension on Presence {
|
||||||
if (presence.statusMsg?.isNotEmpty ?? false) {
|
if (presence.statusMsg?.isNotEmpty ?? false) {
|
||||||
return presence.statusMsg;
|
return presence.statusMsg;
|
||||||
}
|
}
|
||||||
if (presence.currentlyActive) {
|
if (presence.currentlyActive ?? false) {
|
||||||
return L10n.of(context).currentlyActive;
|
return L10n.of(context).currentlyActive;
|
||||||
}
|
}
|
||||||
return presence.presence.getLocalized(context);
|
return presence.presence.getLocalized(context);
|
||||||
|
|
Loading…
Reference in a new issue