mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 02:50:39 +00:00
Add possibility to send messages via dbus daemon
This commit is contained in:
parent
a69e8facd2
commit
5859e7b9f7
3 changed files with 263 additions and 176 deletions
|
@ -367,8 +367,9 @@ class Manager implements TextSecure {
|
|||
sendMessage(message, attachments, recipients);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendMessage(String messageText, List<String> attachments,
|
||||
Collection<String> recipients)
|
||||
List<String> recipients)
|
||||
throws IOException, EncapsulatedExceptions, AttachmentInvalidException {
|
||||
final TextSecureDataMessage.Builder messageBuilder = TextSecureDataMessage.newBuilder().withBody(messageText);
|
||||
if (attachments != null) {
|
||||
|
@ -379,6 +380,7 @@ class Manager implements TextSecure {
|
|||
sendMessage(message, recipients);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendEndSessionMessage(List<String> recipients) throws IOException, EncapsulatedExceptions {
|
||||
TextSecureDataMessage message = TextSecureDataMessage.newBuilder()
|
||||
.asEndSessionMessage()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue