From ac6fcd15946fbb57f2bdae770978ddbecfcf82a3 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sat, 27 Feb 2021 07:41:00 +0100 Subject: [PATCH] fix: Own presence at top of the list --- lib/views/contacts.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/views/contacts.dart b/lib/views/contacts.dart index 826f31a8..f0f1fe2f 100644 --- a/lib/views/contacts.dart +++ b/lib/views/contacts.dart @@ -81,7 +81,7 @@ class _ContactsState extends State { .toList(); if (client.presences[client.userID]?.presence?.statusMsg?.isNotEmpty ?? false) { - contactList.add(client.presences[client.userID]); + contactList.insert(0, client.presences[client.userID]); } return Scaffold( appBar: AppBar(