Fixed embed updates not being sent

This commit is contained in:
diamondburned 2020-07-13 18:45:57 -07:00
parent 3c1d6f1d3f
commit cc97c2a69c
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ func (ch *Channel) JoinServer(ctx context.Context, ct cchat.MessagesContainer) (
}),
ch.session.AddHandler(func(m *gateway.MessageUpdateEvent) {
// If the updated content is empty. TODO: add embed support.
if m.ChannelID == ch.id && m.Content != "" {
if m.ChannelID == ch.id {
ct.UpdateMessage(NewMessageUpdateContent(m.Message, ch.session))
}
}),