mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-27 02:54:23 +01:00
Use name in groupInfo only if it's a group update
Signal-Android send an empty name instead of absent, with group quit messages
This commit is contained in:
@@ -745,7 +745,7 @@ public class Main {
|
||||
SignalServiceGroup groupInfo = message.getGroupInfo().get();
|
||||
System.out.println("Group info:");
|
||||
System.out.println(" Id: " + Base64.encodeBytes(groupInfo.getGroupId()));
|
||||
if (groupInfo.getName().isPresent()) {
|
||||
if (groupInfo.getType() == SignalServiceGroup.Type.UPDATE && groupInfo.getName().isPresent()) {
|
||||
System.out.println(" Name: " + groupInfo.getName().get());
|
||||
} else {
|
||||
GroupInfo group = m.getGroup(groupInfo.getGroupId());
|
||||
|
||||
Reference in New Issue
Block a user