mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 02:50:39 +00:00
Implement reacting to stories
This commit is contained in:
parent
207764e0be
commit
fea19c9e20
9 changed files with 33 additions and 10 deletions
|
@ -364,7 +364,8 @@ public class DbusManagerImpl implements Manager {
|
|||
final boolean remove,
|
||||
final RecipientIdentifier.Single targetAuthor,
|
||||
final long targetSentTimestamp,
|
||||
final Set<RecipientIdentifier> recipients
|
||||
final Set<RecipientIdentifier> recipients,
|
||||
final boolean isStory
|
||||
) throws IOException, NotAGroupMemberException, GroupNotFoundException, GroupSendingNotAllowedException {
|
||||
return handleMessage(recipients,
|
||||
numbers -> signal.sendMessageReaction(emoji,
|
||||
|
|
|
@ -287,7 +287,8 @@ public class DbusSignalImpl implements Signal {
|
|||
targetSentTimestamp,
|
||||
getSingleRecipientIdentifiers(recipients, m.getSelfNumber()).stream()
|
||||
.map(RecipientIdentifier.class::cast)
|
||||
.collect(Collectors.toSet()));
|
||||
.collect(Collectors.toSet()),
|
||||
false);
|
||||
checkSendMessageResults(results);
|
||||
return results.timestamp();
|
||||
} catch (IOException e) {
|
||||
|
@ -485,7 +486,8 @@ public class DbusSignalImpl implements Signal {
|
|||
remove,
|
||||
getSingleRecipientIdentifier(targetAuthor, m.getSelfNumber()),
|
||||
targetSentTimestamp,
|
||||
Set.of(getGroupRecipientIdentifier(groupId)));
|
||||
Set.of(getGroupRecipientIdentifier(groupId)),
|
||||
false);
|
||||
checkSendMessageResults(results);
|
||||
return results.timestamp();
|
||||
} catch (IOException e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue