From dd9653bdec827603418cf95a2e3902157642affe Mon Sep 17 00:00:00 2001 From: Boris Melnik Date: Wed, 30 Mar 2022 17:11:18 +0300 Subject: [PATCH] fix(ActivityCenter): Hide pinned messages Closes: #5205 --- src/app/modules/shared_models/message_item_qobject.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/modules/shared_models/message_item_qobject.nim b/src/app/modules/shared_models/message_item_qobject.nim index 04602a9eeb..1f7baad415 100644 --- a/src/app/modules/shared_models/message_item_qobject.nim +++ b/src/app/modules/shared_models/message_item_qobject.nim @@ -111,15 +111,15 @@ QtObject: # read = reactionIds proc pinned*(self: MessageItem): bool {.slot.} = result = ?.self.messageItem.pinned - QtProperty[int] bool: + QtProperty[bool] pinned: read = bool proc editMode*(self: MessageItem): bool {.slot.} = result = ?.self.messageItem.editMode - QtProperty[int] bool: + QtProperty[bool] editMode: read = bool proc isEdited*(self: MessageItem): bool {.slot.} = result = ?.self.messageItem.isEdited - QtProperty[int] bool: + QtProperty[bool] isEdited: read = bool # this is not the greatest approach, but aligns with the rest of the code