message: Fix the length of media messages
diff: @@ -187,11 +187,15 @@ export class MatrixAction {
  }
  if (filename) {
  - url += `/${filename}`;
  + url += `/${encodeURIComponent(filename)}`;
  + text = `${fileSize} < ${url} >`;
  }
  + else {
  + // If not a filename, print the body
  text = `${event.content.body} ${fileSize} < ${url} >`;
  }
  }
  + }
  return new MatrixAction(type, text, htmlText, event.origin_server_ts);
  }
  