Skip to content

Commit 30f857b

Browse files
author
Subhasish-Behera
committed
messages: Add condition for moved label
instead of EDITED label now urwid.Text takes label_text as argument which can be "EDITED" and "MOVED".
1 parent cd40952 commit 30f857b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

zulipterminal/ui_tools/messages.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,14 +723,20 @@ def main_view(self) -> List[Any]:
723723
if self.message["id"] in self.model.index["edited_messages"]:
724724
edited_label_size = 7
725725
left_padding = 1
726+
label_text = "EDITED"
727+
elif self.message["id"] in self.model.index["moved_messages"]:
728+
edited_label_size = 6
729+
left_padding = 2
730+
label_text = "MOVED"
726731
else:
727732
edited_label_size = 0
728733
left_padding = 8
734+
label_text = "EDITED"
729735

730736
wrapped_content = urwid.Padding(
731737
urwid.Columns(
732738
[
733-
(edited_label_size, urwid.Text("EDITED")),
739+
(edited_label_size, urwid.Text(label_text)),
734740
urwid.LineBox(
735741
urwid.Columns(
736742
[

0 commit comments

Comments
 (0)