Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 7f341f0c52ec1011b7ac06019dc6b8a594e6e924 Author: Wohlstand <admin@wohlnet.ru> Date: Fri Dec 19 14:41:37 2025 +0000 Attempt to fix notices diff --git a/bridge/discord/handlers.go b/bridge/discord/handlers.go index d442fca..dc3480e 100644 --- a/bridge/discord/handlers.go +++ b/bridge/discord/handlers.go @@ -1076 +1077 @@ func (b *Bdiscord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreat   for _, attach := range m.Attachments {   if b.alwaysDownloadFiles {   var url, name, caption string + var data *[]byte     url = attach.URL   name = attach.Filename @@ -1157 +1167 @@ func (b *Bdiscord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreat   if err != nil {   return   } - data, err := helper.DownloadFile(url) + data, err = helper.DownloadFile(url)   if err != nil {   return   } @@ -1697 +1707 @@ func (b *Bdiscord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreat   }     // no empty messages - if rmsg.Text == "" && len(m.Attachments) == 0 { + if rmsg.Text == "" && len(rmsg.Extra["file"]) == 0 {   return   }