Skip to content

Commit 299a1c1

Browse files
committed
refactor: messages: Allow datetime field of current message to be empty.
1 parent df2feb4 commit 299a1c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zulipterminal/ui_tools/messages.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,8 @@ def main_view(self) -> List[Any]:
683683
"recipients": recipient_header is not None,
684684
"author": message["this"]["author"] != message["last"]["author"],
685685
"24h": (
686-
message["last"]["datetime"] is not None
686+
message["this"]["datetime"] is not None
687+
and message["last"]["datetime"] is not None
687688
and ((message["this"]["datetime"] - message["last"]["datetime"]).days)
688689
),
689690
"timestamp": (

0 commit comments

Comments
 (0)