Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit f3b1eec

Browse files
Sam1301kunall17
authored andcommitted
Apply markdown to uploaded links.
1 parent 038e47e commit f3b1eec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/main/java/com/zulip/android/activities/ZulipActivity.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ private void startFileUpload() {
10671067
*
10681068
* @param file on local storage
10691069
*/
1070-
private void uploadFile(File file) {
1070+
private void uploadFile(final File file) {
10711071

10721072
// create RequestBody instance from file
10731073
RequestBody requestFile =
@@ -1095,7 +1095,8 @@ public void onResponse(Call<UploadResponse> call,
10951095
sendingMessage(false, loadingMsg);
10961096

10971097
// print message to compose box
1098-
messageEt.append(" " + UrlHelper.addHost(filePathOnServer));
1098+
messageEt.append(" [" + file.getName() + "](" +
1099+
UrlHelper.addHost(filePathOnServer) + ")");
10991100
} else {
11001101
// remove loading message from the screen
11011102
sendingMessage(false, loadingMsg);

0 commit comments

Comments
 (0)