mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-19 15:14:21 +01:00
Allow retreving and updating group info and contact names via dbus (#62)
* dbus method to get contact info * Add getGroupName method * Save after updating contact name * allow group updates over dbus * Allow retreiving group member list as well * Space after if before conditions if( -> if ( * Return an empty string if the contact is unknown * Handle null/non-existant groups better * Remove debug output and allow updating the avatar * Remove extra variables in update messages
This commit is contained in:
@@ -19,6 +19,16 @@ public interface Signal extends DBusInterface {
|
||||
|
||||
void sendGroupMessage(String message, List<String> attachments, byte[] groupId) throws EncapsulatedExceptions, GroupNotFoundException, AttachmentInvalidException, IOException;
|
||||
|
||||
String getContactName(String number);
|
||||
|
||||
void setContactName(String number, String name);
|
||||
|
||||
String getGroupName(byte[] groupId);
|
||||
|
||||
List<String> getGroupMembers(byte[] groupId);
|
||||
|
||||
void updateGroup(byte[] groupId, String name, List<String> members, String avatar) throws IOException, EncapsulatedExceptions, GroupNotFoundException, AttachmentInvalidException;
|
||||
|
||||
class MessageReceived extends DBusSignal {
|
||||
private long timestamp;
|
||||
private String sender;
|
||||
|
||||
Reference in New Issue
Block a user