fix user popup sometimes crashing

onboarding
Sorunome 5 years ago
parent d097a3ca6f
commit 7f58edc321

@ -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…
Cancel
Save