submessages: Add submessage_id to submessage event.

It's useful to have the submessage_id so that widgets
can in theory sort all the events (and not have to rely
on them arriving in sequence).
This commit is contained in:
Steve Howell
2018-05-30 20:41:15 +00:00
committed by Tim Abbott
parent d947ada4da
commit 554883e039
3 changed files with 5 additions and 0 deletions

View File

@@ -1453,6 +1453,7 @@ def do_add_submessage(sender_id: int,
type="submessage",
msg_type=msg_type,
message_id=message_id,
submessage_id=submessage.id,
sender_id=sender_id,
content=content,
)