From bad322e146e2005d414925c5ff0a0c61df7a27dc Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Wed, 23 Jun 2021 14:12:33 +0200 Subject: [PATCH] refactor: make chat component enum variants match protocol values Closes #183 --- .../src/StatusQ/Components/StatusChatListItem.qml | 11 +++++++---- .../src/StatusQ/Controls/StatusChatInfoButton.qml | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/ui/StatusQ/src/StatusQ/Components/StatusChatListItem.qml b/ui/StatusQ/src/StatusQ/Components/StatusChatListItem.qml index bf89c7f52c..4712236d5c 100644 --- a/ui/StatusQ/src/StatusQ/Components/StatusChatListItem.qml +++ b/ui/StatusQ/src/StatusQ/Components/StatusChatListItem.qml @@ -25,10 +25,13 @@ Rectangle { signal unmute() enum Type { - PublicChat, - GroupChat, - CommunityChat, - OneToOneChat + Unknown0, // 0 + OneToOneChat, // 1 + PublicChat, // 2 + GroupChat, // 3 + Unknown1, // 4 + Unknown2, // 5 + CommunityChat // 6 } implicitWidth: 288 diff --git a/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml b/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml index 0fcdb764dc..fbb37eb904 100644 --- a/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml +++ b/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml @@ -28,10 +28,13 @@ Rectangle { signal unmute() enum Type { - PublicChat, - GroupChat, - CommunityChat, - OneToOneChat + Unknown0, // 0 + OneToOneChat, // 1 + PublicChat, // 2 + GroupChat, // 3 + Unknown1, // 4 + Unknown2, // 5 + CommunityChat // 6 } radius: 8