Fix real timestamp in messages from changing during edits

This commit is contained in:
Jeremy Zhang 2017-09-07 05:42:31 +00:00
parent 71b29cd75d
commit 5df40bf558

View File

@ -79,6 +79,7 @@ class DatabaseInterface(object):
.filter(Messages.message_id == message.id).first()
if msg:
msg.content = message.content
msg.timestamp = message.timestamp
msg.edited_timestamp = message.edited_timestamp
msg.mentions = json.dumps(get_message_mentions(message.mentions))
msg.attachments = json.dumps(message.attachments)