change: Implement contact list instead of status

This commit is contained in:
Christian Pauly 2021-02-05 08:43:44 +01:00
commit 237240407f
10 changed files with 216 additions and 288 deletions

View file

@ -37,4 +37,16 @@ extension PresenceExtension on Presence {
}
return presence.presence.getLocalized(context);
}
Color get color {
switch (presence?.presence ?? PresenceType.offline) {
case PresenceType.online:
return Colors.green;
case PresenceType.offline:
return Colors.red;
case PresenceType.unavailable:
default:
return Colors.grey;
}
}
}