Inherit visibility when replying in TUI
When replying to a toot, the visibility gets set to default: if the toot has a direct visibility, the visibility in reply will be changed to the default one, whereas it should stay in direct mode.
This commit is contained in:
parent
314a0aefbe
commit
d81eaaad0d
1 changed files with 3 additions and 1 deletions
|
@ -33,7 +33,9 @@ class StatusComposer(urwid.Frame):
|
||||||
self.cw_remove_button = Button("Remove content warning",
|
self.cw_remove_button = Button("Remove content warning",
|
||||||
on_press=self.remove_content_warning)
|
on_press=self.remove_content_warning)
|
||||||
|
|
||||||
self.visibility = get_default_visibility()
|
self.visibility = (
|
||||||
|
in_reply_to.visibility if in_reply_to else get_default_visibility()
|
||||||
|
)
|
||||||
self.visibility_button = Button("Visibility: {}".format(self.visibility),
|
self.visibility_button = Button("Visibility: {}".format(self.visibility),
|
||||||
on_press=self.choose_visibility)
|
on_press=self.choose_visibility)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue