From d7dcf4fe85f86ea1faff4a542ff700f6b877a842 Mon Sep 17 00:00:00 2001 From: MikaKerman Date: Tue, 4 Feb 2025 11:24:55 +0200 Subject: [PATCH] Add optional primary flag to FactBlock - Introduced a new optional `primary` boolean attribute to the `FactBlock` class - Defaults to `False` when not specified - Allows for distinguishing primary facts in message blocks --- elementary/messages/blocks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/elementary/messages/blocks.py b/elementary/messages/blocks.py index a72f5ee4a..34afff53c 100644 --- a/elementary/messages/blocks.py +++ b/elementary/messages/blocks.py @@ -86,6 +86,7 @@ class FactBlock(BaseBlock): type: Literal["fact"] = "fact" title: LineBlock value: LineBlock + primary: bool = False class FactListBlock(BaseBlock):