Skip to content

Commit

Permalink
fix post_id attribute not being assigned to send_raw messages
Browse files Browse the repository at this point in the history
  • Loading branch information
desvox committed Jul 19, 2024
1 parent 0b6e8ea commit 3755703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/urwid/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1894,10 +1894,10 @@ class MessageBody(urwid.Text):
An urwid.Text object that works with the BBJ formatting directives.
"""
def __init__(self, message):
self.post_id = message["post_id"]
if message["send_raw"]:
return super(MessageBody, self).__init__(message["body"])

self.post_id = message["post_id"]
text_objects = message["body"]
result = []
last_directive = None
Expand Down

0 comments on commit 3755703

Please sign in to comment.