1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-24 03:27:59 +01:00

Remove broken methods in ChatMarkersManager

This commit is contained in:
Florian Schmaus 2018-09-06 19:09:12 +02:00
parent 0778485243
commit 0fa6fb946c

View file

@ -204,44 +204,4 @@ public final class ChatMarkersManager extends Manager {
public boolean removeIncomingChatMarkerMessageListener(ChatMarkersListener listener) {
return incomingListeners.remove(listener);
}
public void markMessageAsReceived(Message message)
throws
NotConnectedException,
InterruptedException,
IllegalArgumentException {
if (message == null) {
throw new IllegalArgumentException("To and From needed");
}
message.addExtension(new ChatMarkersElements.ReceivedExtension(message.getStanzaId()));
sendChatMarkerMessage(message);
}
public void markMessageAsDisplayed(Message message)
throws
NotConnectedException,
InterruptedException,
IllegalArgumentException {
if (message == null) {
throw new IllegalArgumentException("To and From needed");
}
message.addExtension(new ChatMarkersElements.DisplayedExtension(message.getStanzaId()));
sendChatMarkerMessage(message);
}
public void markMessageAsAcknowledged(Message message)
throws
NotConnectedException,
InterruptedException,
IllegalArgumentException {
if (message == null) {
throw new IllegalArgumentException("To and From needed");
}
message.addExtension(new ChatMarkersElements.AcknowledgedExtension(message.getStanzaId()));
sendChatMarkerMessage(message);
}
private void sendChatMarkerMessage(Message message) throws NotConnectedException, InterruptedException {
connection().sendStanza(message);
}
}