chiark / gitweb /
Match reply visibility to the incoming message.
authorSimon Tatham <anakin@pobox.com>
Thu, 14 Dec 2023 17:35:21 +0000 (17:35 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 14 Dec 2023 17:35:21 +0000 (17:35 +0000)
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

index cde2d8920d890a9995a8dd6aac4cacbdad0bfccb..b717d21c3147566d6cb0cc1289c093e764ae6fed 100644 (file)
@@ -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