mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
parent
83122737dc
commit
bd69660ac6
1 changed files with 13 additions and 1 deletions
|
@ -515,8 +515,15 @@ public class Manager implements Signal {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return SignalServiceDataMessage.newBuilder()
|
SignalServiceDataMessage.Builder messageBuilder = SignalServiceDataMessage.newBuilder()
|
||||||
.asGroupMessage(group.build());
|
.asGroupMessage(group.build());
|
||||||
|
|
||||||
|
ThreadInfo thread = account.getThreadStore().getThread(Base64.encodeBytes(g.groupId));
|
||||||
|
if (thread != null) {
|
||||||
|
messageBuilder.withExpiration(thread.messageExpirationTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
return messageBuilder;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void sendGroupInfoRequest(byte[] groupId, String recipient) throws IOException, EncapsulatedExceptions {
|
private void sendGroupInfoRequest(byte[] groupId, String recipient) throws IOException, EncapsulatedExceptions {
|
||||||
|
@ -530,6 +537,11 @@ public class Manager implements Signal {
|
||||||
SignalServiceDataMessage.Builder messageBuilder = SignalServiceDataMessage.newBuilder()
|
SignalServiceDataMessage.Builder messageBuilder = SignalServiceDataMessage.newBuilder()
|
||||||
.asGroupMessage(group.build());
|
.asGroupMessage(group.build());
|
||||||
|
|
||||||
|
ThreadInfo thread = account.getThreadStore().getThread(Base64.encodeBytes(groupId));
|
||||||
|
if (thread != null) {
|
||||||
|
messageBuilder.withExpiration(thread.messageExpirationTime);
|
||||||
|
}
|
||||||
|
|
||||||
// Send group info request message to the recipient who sent us a message with this groupId
|
// Send group info request message to the recipient who sent us a message with this groupId
|
||||||
final List<String> membersSend = new ArrayList<>();
|
final List<String> membersSend = new ArrayList<>();
|
||||||
membersSend.add(recipient);
|
membersSend.add(recipient);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue