fix user popup sometimes crashing

This commit is contained in:
Sorunome 2020-10-28 15:01:16 +01:00
parent d1dfa9c8cf
commit db2b357f47
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C

View File

@ -32,7 +32,7 @@ extension PresenceExtension on Presence {
if (presence.statusMsg?.isNotEmpty ?? false) {
return presence.statusMsg;
}
if (presence.currentlyActive) {
if (presence.currentlyActive ?? false) {
return L10n.of(context).currentlyActive;
}
return presence.presence.getLocalized(context);