Implement JsonRpc command for updateGroup

Co-authored-by: technillogue <technillogue@gmail.com>

Closes #666
This commit is contained in:
AsamK 2021-08-10 14:33:18 +02:00
parent b09677a46c
commit 6826e3cb49
6 changed files with 84 additions and 90 deletions

View file

@ -63,7 +63,9 @@ public class QuitGroupCommand implements LocalCommand {
try {
final var results = m.sendQuitGroupMessage(groupId,
groupAdmins == null ? Set.of() : new HashSet<>(groupAdmins));
handleTimestampAndSendMessageResults(writer, results.first(), results.second());
final var timestamp = results.first();
writer.println("{}", timestamp);
handleTimestampAndSendMessageResults(results.second());
} catch (NotAGroupMemberException e) {
logger.info("User is not a group member");
}