mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Print message reactions
This commit is contained in:
parent
37ed02f4ce
commit
f3b8df789d
1 changed files with 9 additions and 0 deletions
|
@ -312,6 +312,15 @@ public class ReceiveMessageHandler implements Manager.ReceiveMessageHandler {
|
||||||
System.out.println("Profile key update, key length:" + message.getProfileKey().get().length);
|
System.out.println("Profile key update, key length:" + message.getProfileKey().get().length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (message.getReaction().isPresent()) {
|
||||||
|
final SignalServiceDataMessage.Reaction reaction = message.getReaction().get();
|
||||||
|
System.out.println("Reaction:");
|
||||||
|
System.out.println(" - Emoji: " + reaction.getEmoji());
|
||||||
|
System.out.println(" - Target author: " + reaction.getTargetAuthor().getNumber());
|
||||||
|
System.out.println(" - Target timestamp: " + reaction.getTargetSentTimestamp());
|
||||||
|
System.out.println(" - Is remove: " + reaction.isRemove());
|
||||||
|
}
|
||||||
|
|
||||||
if (message.getQuote().isPresent()) {
|
if (message.getQuote().isPresent()) {
|
||||||
SignalServiceDataMessage.Quote quote = message.getQuote().get();
|
SignalServiceDataMessage.Quote quote = message.getQuote().get();
|
||||||
System.out.println("Quote: (" + quote.getId() + ")");
|
System.out.println("Quote: (" + quote.getId() + ")");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue