Fix checking if metadata is nil
@@ -127,8 +127,10 @@ func ForwardRoomEvent(
}
for key, info := range metadata {
+ if infos["metadata"] != nil {
infos["metadata"].(map[string]interface{})[key] = info
}
+ }
eventWasForwarded = true
return ForwardEventToForwarders(ctx, enabledForwarders, status, infos, l)
