mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Add sticker pack url to list output
This commit is contained in:
parent
99eef05084
commit
8a5f98dac6
10 changed files with 133 additions and 44 deletions
|
@ -19,6 +19,7 @@ import org.asamk.signal.manager.api.RecipientIdentifier;
|
|||
import org.asamk.signal.manager.api.SendGroupMessageResults;
|
||||
import org.asamk.signal.manager.api.SendMessageResults;
|
||||
import org.asamk.signal.manager.api.StickerPack;
|
||||
import org.asamk.signal.manager.api.StickerPackUrl;
|
||||
import org.asamk.signal.manager.api.TypingAction;
|
||||
import org.asamk.signal.manager.api.UpdateGroup;
|
||||
import org.asamk.signal.manager.groups.GroupId;
|
||||
|
@ -436,10 +437,10 @@ public class DbusManagerImpl implements Manager {
|
|||
}
|
||||
|
||||
@Override
|
||||
public URI uploadStickerPack(final File path) throws IOException, StickerPackInvalidException {
|
||||
public StickerPackUrl uploadStickerPack(final File path) throws IOException, StickerPackInvalidException {
|
||||
try {
|
||||
return new URI(signal.uploadStickerPack(path.getPath()));
|
||||
} catch (URISyntaxException e) {
|
||||
return StickerPackUrl.fromUri(new URI(signal.uploadStickerPack(path.getPath())));
|
||||
} catch (URISyntaxException | StickerPackUrl.InvalidStickerPackLinkException e) {
|
||||
throw new AssertionError(e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue