Преглед на файлове

Implement redactions for guild messages.

Fixes #31
Gary Kramlich преди 3 години
родител
ревизия
be1acdde09
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      bridge/portal.go

+ 1 - 1
bridge/portal.go

@@ -514,7 +514,7 @@ func (p *Portal) handleDiscordMessageDelete(user *User, msg *discordgo.Message)
 	if p.Type == discordgo.ChannelTypeDM {
 		intent = p.bridge.GetPuppetByID(p.DMUser).IntentFor(p)
 	} else {
-		p.log.Errorfln("no guilds yet...")
+		intent = p.MainIntent()
 	}
 
 	if existing != nil {