mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-15 20:04:18 +01:00
Quotes, Mentions and Reactions in non-daemon JSON mode (#389)
* Added support for quotes, mentions and reactions in non-daemon JSON output
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
package org.asamk.signal.json;
|
||||
|
||||
import org.asamk.Signal;
|
||||
import org.asamk.signal.manager.Manager;
|
||||
import org.whispersystems.signalservice.api.messages.multidevice.SentTranscriptMessage;
|
||||
|
||||
class JsonSyncDataMessage extends JsonDataMessage {
|
||||
|
||||
String destination;
|
||||
|
||||
JsonSyncDataMessage(SentTranscriptMessage transcriptMessage) {
|
||||
super(transcriptMessage.getMessage());
|
||||
JsonSyncDataMessage(SentTranscriptMessage transcriptMessage, Manager m) {
|
||||
super(transcriptMessage.getMessage(), m);
|
||||
if (transcriptMessage.getDestination().isPresent()) {
|
||||
this.destination = transcriptMessage.getDestination().get().getLegacyIdentifier();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user