Merge pull request #255 from jonas747/msg-timestamps-missing
Apply more fields to existing message in message update
This commit is contained in:
commit
910b864864
1 changed files with 6 additions and 0 deletions
6
state.go
6
state.go
|
@ -522,6 +522,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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue