mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Fix group info for json dbus messages
This commit is contained in:
parent
690ce2829f
commit
c588130491
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ class JsonDataMessage {
|
||||||
public JsonDataMessage(Signal.MessageReceived messageReceived) {
|
public JsonDataMessage(Signal.MessageReceived messageReceived) {
|
||||||
timestamp = messageReceived.getTimestamp();
|
timestamp = messageReceived.getTimestamp();
|
||||||
message = messageReceived.getMessage();
|
message = messageReceived.getMessage();
|
||||||
groupInfo = new JsonGroupInfo(messageReceived.getGroupId());
|
groupInfo = messageReceived.getGroupId().length > 0 ? new JsonGroupInfo(messageReceived.getGroupId()) : null;
|
||||||
reaction = null; // TODO Replace these 4 with the proper commands
|
reaction = null; // TODO Replace these 4 with the proper commands
|
||||||
quote = null;
|
quote = null;
|
||||||
mentions = null;
|
mentions = null;
|
||||||
|
@ -80,7 +80,7 @@ class JsonDataMessage {
|
||||||
public JsonDataMessage(Signal.SyncMessageReceived messageReceived) {
|
public JsonDataMessage(Signal.SyncMessageReceived messageReceived) {
|
||||||
timestamp = messageReceived.getTimestamp();
|
timestamp = messageReceived.getTimestamp();
|
||||||
message = messageReceived.getMessage();
|
message = messageReceived.getMessage();
|
||||||
groupInfo = new JsonGroupInfo(messageReceived.getGroupId());
|
groupInfo = messageReceived.getGroupId().length > 0 ? new JsonGroupInfo(messageReceived.getGroupId()) : null;
|
||||||
reaction = null; // TODO Replace these 4 with the proper commands
|
reaction = null; // TODO Replace these 4 with the proper commands
|
||||||
quote = null;
|
quote = null;
|
||||||
mentions = null;
|
mentions = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue