msgconv/from-discord: only complain about portal when we can't find it
This commit is contained in:
@@ -249,7 +249,7 @@ func (mc *MessageConverter) forwardedMessageHtmlPart(ctx context.Context, portal
|
|||||||
// We only have the name of the portal.
|
// We only have the name of the portal.
|
||||||
origLink = fmt.Sprintf("%s • %s", forwardedFromPortal.Name, msgTSText)
|
origLink = fmt.Sprintf("%s • %s", forwardedFromPortal.Name, msgTSText)
|
||||||
}
|
}
|
||||||
} else {
|
} else if err != nil {
|
||||||
log.Err(err).Msg("Couldn't find corresponding portal when bridging forwarded message")
|
log.Err(err).Msg("Couldn't find corresponding portal when bridging forwarded message")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user