From d9c04bb32dae0e85242b586cca93c98407e5d813 Mon Sep 17 00:00:00 2001 From: Pascal Precht <445106+PascalPrecht@users.noreply.github.com> Date: Mon, 14 Nov 2022 17:16:01 +0100 Subject: [PATCH] fix: prevent app from crash due to missing type variants Alright this was very painful to figure out. Because desktop didn't know about the notification type for `ContactVerification`, the signal processing for incoming contact verifications would fail. At the same time, the new message content type was missing a type variant for content verification as well, which would cause the app to crash at runtime for both, sender and receiver of verification requests. Fixes #8205 --- src/app_service/common/types.nim | 1 + src/app_service/service/activity_center/dto/notification.nim | 1 + 2 files changed, 2 insertions(+) diff --git a/src/app_service/common/types.nim b/src/app_service/common/types.nim index 92aaff7eab..0457c0004d 100644 --- a/src/app_service/common/types.nim +++ b/src/app_service/common/types.nim @@ -15,6 +15,7 @@ type Gap = 10 Edit = 11 DiscordMessage = 12 + ContactIdentityVerification = 13 type StatusType* {.pure.} = enum diff --git a/src/app_service/service/activity_center/dto/notification.nim b/src/app_service/service/activity_center/dto/notification.nim index a8b33a0448..f113f4545b 100644 --- a/src/app_service/service/activity_center/dto/notification.nim +++ b/src/app_service/service/activity_center/dto/notification.nim @@ -17,6 +17,7 @@ type ActivityCenterNotificationType* {.pure.}= enum CommunityRequest = 7 CommunityMembershipRequest = 8 CommunityKicked = 9 + ContactVerification = 10 type ActivityCenterMembershipStatus* {.pure.}= enum Idle = 0,