mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Rename internal quitGroup method
This commit is contained in:
parent
7f64a9812c
commit
cd3741d236
3 changed files with 3 additions and 3 deletions
|
@ -665,7 +665,7 @@ public class Manager implements Closeable {
|
||||||
return account.getGroupStore().getGroups();
|
return account.getGroupStore().getGroups();
|
||||||
}
|
}
|
||||||
|
|
||||||
public SendGroupMessageResults sendQuitGroupMessage(
|
public SendGroupMessageResults quitGroup(
|
||||||
GroupId groupId, Set<RecipientIdentifier.Single> groupAdmins
|
GroupId groupId, Set<RecipientIdentifier.Single> groupAdmins
|
||||||
) throws GroupNotFoundException, IOException, NotAGroupMemberException, LastGroupAdminException {
|
) throws GroupNotFoundException, IOException, NotAGroupMemberException, LastGroupAdminException {
|
||||||
final var newAdmins = getRecipientIds(groupAdmins);
|
final var newAdmins = getRecipientIds(groupAdmins);
|
||||||
|
|
|
@ -54,7 +54,7 @@ public class QuitGroupCommand implements JsonRpcLocalCommand {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
try {
|
try {
|
||||||
final var results = m.sendQuitGroupMessage(groupId, groupAdmins);
|
final var results = m.quitGroup(groupId, groupAdmins);
|
||||||
final var timestamp = results.getTimestamp();
|
final var timestamp = results.getTimestamp();
|
||||||
outputResult(outputWriter, timestamp);
|
outputResult(outputWriter, timestamp);
|
||||||
handleSendMessageResults(results.getResults());
|
handleSendMessageResults(results.getResults());
|
||||||
|
|
|
@ -420,7 +420,7 @@ public class DbusSignalImpl implements Signal {
|
||||||
public void quitGroup(final byte[] groupId) {
|
public void quitGroup(final byte[] groupId) {
|
||||||
var group = getGroupId(groupId);
|
var group = getGroupId(groupId);
|
||||||
try {
|
try {
|
||||||
m.sendQuitGroupMessage(group, Set.of());
|
m.quitGroup(group, Set.of());
|
||||||
} catch (GroupNotFoundException | NotAGroupMemberException e) {
|
} catch (GroupNotFoundException | NotAGroupMemberException e) {
|
||||||
throw new Error.GroupNotFound(e.getMessage());
|
throw new Error.GroupNotFound(e.getMessage());
|
||||||
} catch (IOException | LastGroupAdminException e) {
|
} catch (IOException | LastGroupAdminException e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue