Skip to content

Commit

Permalink
Remove deprecated getMessageMarkdown method
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Jan 6, 2024
1 parent 2ed1f6b commit 92fe1c4
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 70 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import com.github.jamesnetherton.zulip.client.api.message.request.FileUploadApiRequest;
import com.github.jamesnetherton.zulip.client.api.message.request.GetMessageApiRequest;
import com.github.jamesnetherton.zulip.client.api.message.request.GetMessageHistoryApiRequest;
import com.github.jamesnetherton.zulip.client.api.message.request.GetMessageMarkdownApiRequest;
import com.github.jamesnetherton.zulip.client.api.message.request.GetMessageReadReceiptsApiRequest;
import com.github.jamesnetherton.zulip.client.api.message.request.GetMessagesApiRequest;
import com.github.jamesnetherton.zulip.client.api.message.request.GetScheduledMessagesApiRequest;
Expand Down Expand Up @@ -145,19 +144,6 @@ public GetMessageHistoryApiRequest getMessageHistory(long messageId) {
return new GetMessageHistoryApiRequest(this.client, messageId);
}

/**
* Gets the raw content of a message.
*
* @see <a href="https://zulip.com/api/get-raw-message">https://zulip.com/api/get-raw-message</a>
*
* @param messageId The id of the message to get raw content
* @return The {@link GetMessageMarkdownApiRequest} builder object
*/
@Deprecated
public GetMessageMarkdownApiRequest getMessageMarkdown(long messageId) {
return new GetMessageMarkdownApiRequest(this.client, messageId);
}

/**
* Gets a single message.
*
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,6 @@ public void messageMarkdown() throws ZulipClientException {
.sendStreamMessage("**content**", "Markdown Stream", "Test Topic")
.execute();

String markdown = zulip.messages().getMessageMarkdown(messageId).execute();
assertEquals("**content**", markdown);

Message message = zulip.messages().getMessage(messageId).withApplyMarkdown(false).execute();
assertEquals("**content**", message.getContent());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,6 @@ public void getMessageHistory() throws Exception {
assertEquals(2, updatedHistory.getUserId());
}

@Test
public void getMessageMarkdown() throws Exception {
stubZulipResponse(GET, "/messages/1", "rawMarkdown.json");

String markdown = zulip.messages().getMessageMarkdown(1).execute();

assertEquals("some **bold** content", markdown);
}

@Test
public void getMessagesWithIntAnchor() throws Exception {
getMessages(1);
Expand Down

0 comments on commit 92fe1c4

Please sign in to comment.