Apply more fields to message in message update

In case update was handled before create
This commit is contained in:
jonas747 2016-09-25 19:47:18 +02:00
parent bbbc21db6b
commit f01c5a3344

View file

@ -511,6 +511,12 @@ func (s *State) MessageAdd(message *Message) error {
if message.Attachments != nil {
m.Attachments = message.Attachments
}
if message.Timestamp != "" {
m.Timestamp = message.Timestamp
}
if message.Author != nil {
m.Author = message.Author
}
return nil
}