From e9afde0c7ea65687a48bce84877dfef671a19a2e Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 14 Dec 2023 17:35:21 +0000 Subject: [PATCH] Match reply visibility to the incoming message. I had a conversation in 'unlisted' status with someone, and it was a pain to keep setting this by hand. Of course, it's only a default: you _can_ change the visibility in a reply. --- cursesclient.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cursesclient.py b/cursesclient.py index cde2d89..b717d21 100644 --- a/cursesclient.py +++ b/cursesclient.py @@ -1088,6 +1088,9 @@ class Composer(Activity, EditorCommon): self.language = "en" # FIXME: find a better default from somewhere self.content_warning = "" self.visibility = "public" + if self.reply_id is not None: + reply_status = self.cc.get_status_by_id(reply_id) + self.visibility = reply_status['visibility'] def render(self): y = 0 -- 2.30.2