Skip to content

Commit

Permalink
Allow sendMessage to accept only boolean instead of generic Object va…
Browse files Browse the repository at this point in the history
…rargs
  • Loading branch information
spoonman01 committed Sep 24, 2024
1 parent a160617 commit 91ae3e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/wire/xenon/WireAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import java.util.UUID;

public interface WireAPI {
Devices sendMessage(OtrMessage msg, Object... ignoreMissing) throws HttpException;
Devices sendMessage(OtrMessage msg, boolean ignoreMissing) throws HttpException;

Devices sendPartialMessage(OtrMessage msg, QualifiedId userId) throws HttpException;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/wire/xenon/WireClientBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ private Devices getDevices() throws HttpException {
if (devices == null || devices.hasMissing()) {
String deviceId = getDeviceId();
OtrMessage msg = new OtrMessage(deviceId, new Recipients());
devices = api.sendMessage(msg);
devices = api.sendMessage(msg, false);
}
return devices != null ? devices : new Devices();
}
Expand Down

0 comments on commit 91ae3e1

Please sign in to comment.