mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-20 06:39:54 +01:00
Allow status endpoint to be called with contact properties.
This commit is contained in:
@@ -127,7 +127,6 @@ class MailboxApiImpl implements MailboxApi {
|
|||||||
@Override
|
@Override
|
||||||
public boolean checkStatus(MailboxProperties properties)
|
public boolean checkStatus(MailboxProperties properties)
|
||||||
throws IOException, ApiException {
|
throws IOException, ApiException {
|
||||||
if (!properties.isOwner()) throw new IllegalArgumentException();
|
|
||||||
Response response = sendGetRequest(properties, "/status");
|
Response response = sendGetRequest(properties, "/status");
|
||||||
if (response.code() == 401) throw new ApiException();
|
if (response.code() == 401) throw new ApiException();
|
||||||
return response.isSuccessful();
|
return response.isSuccessful();
|
||||||
|
|||||||
Reference in New Issue
Block a user