mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 08:12:05 +01:00
Remove broken methods in ChatMarkersManager
This commit is contained in:
parent
0778485243
commit
0fa6fb946c
1 changed files with 0 additions and 40 deletions
|
@ -204,44 +204,4 @@ public final class ChatMarkersManager extends Manager {
|
||||||
public boolean removeIncomingChatMarkerMessageListener(ChatMarkersListener listener) {
|
public boolean removeIncomingChatMarkerMessageListener(ChatMarkersListener listener) {
|
||||||
return incomingListeners.remove(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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue