message: Change format of uploaded content URL for
diff: @@ -45,8 +45,7 @@ MatrixAction.fromEvent = function(client, event, mediaUrl) {
  var fileSize = "";
  if (event.content.info && event.content.info.size &&
  typeof event.content.info.size === "number") {
  - fileSize = " (" + Math.round(event.content.info.size / 1024) +
  - "KB)";
  + fileSize = " (" + Math.round(event.content.info.size / 1024) + "KB)";
  }
  // By default assume that the media server = client homeserver
  @@ -54,10 +53,8 @@ MatrixAction.fromEvent = function(client, event, mediaUrl) {
  mediaUrl = client.getHomeserverUrl();
  }
  - text = event.content.body +
  - fileSize +
  - " - " +
  - ContentRepo.getHttpUriForMxc(mediaUrl, event.content.url);
  + const url = ContentRepo.getHttpUriForMxc(mediaUrl, event.content.url);
  + text = `${event.content.body}${fileSize} <${url}>`;
  }
  }
  return new MatrixAction(type, text, htmlText, event.origin_server_ts);
  