1 package org
.asamk
.signal
.commands
;
3 import net
.sourceforge
.argparse4j
.inf
.Namespace
;
4 import net
.sourceforge
.argparse4j
.inf
.Subparser
;
6 import org
.asamk
.signal
.commands
.exceptions
.CommandException
;
7 import org
.asamk
.signal
.commands
.exceptions
.IOErrorException
;
8 import org
.asamk
.signal
.commands
.exceptions
.UntrustedKeyErrorException
;
9 import org
.asamk
.signal
.manager
.Manager
;
10 import org
.whispersystems
.signalservice
.api
.crypto
.UntrustedIdentityException
;
12 import java
.io
.IOException
;
14 public class SendContactsCommand
implements LocalCommand
{
17 public void attachToSubparser(final Subparser subparser
) {
18 subparser
.help("Send a synchronization message with the local contacts list to all linked devices.");
22 public void handleCommand(final Namespace ns
, final Manager m
) throws CommandException
{
25 } catch (UntrustedIdentityException e
) {
26 throw new UntrustedKeyErrorException("SendContacts error: " + e
.getMessage());
27 } catch (IOException e
) {
28 throw new IOErrorException("SendContacts error: " + e
.getMessage());