Rename internal quitGroup method

This commit is contained in:
AsamK 2021-08-26 10:28:04 +02:00
parent 7f64a9812c
commit cd3741d236
3 changed files with 3 additions and 3 deletions

View file

@ -665,7 +665,7 @@ public class Manager implements Closeable {
return account.getGroupStore().getGroups();
}
public SendGroupMessageResults sendQuitGroupMessage(
public SendGroupMessageResults quitGroup(
GroupId groupId, Set<RecipientIdentifier.Single> groupAdmins
) throws GroupNotFoundException, IOException, NotAGroupMemberException, LastGroupAdminException {
final var newAdmins = getRecipientIds(groupAdmins);

View file

@ -54,7 +54,7 @@ public class QuitGroupCommand implements JsonRpcLocalCommand {
try {
try {
final var results = m.sendQuitGroupMessage(groupId, groupAdmins);
final var results = m.quitGroup(groupId, groupAdmins);
final var timestamp = results.getTimestamp();
outputResult(outputWriter, timestamp);
handleSendMessageResults(results.getResults());

View file

@ -420,7 +420,7 @@ public class DbusSignalImpl implements Signal {
public void quitGroup(final byte[] groupId) {
var group = getGroupId(groupId);
try {
m.sendQuitGroupMessage(group, Set.of());
m.quitGroup(group, Set.of());
} catch (GroupNotFoundException | NotAGroupMemberException e) {
throw new Error.GroupNotFound(e.getMessage());
} catch (IOException | LastGroupAdminException e) {