mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00: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:
parent
3e2024ff0a
commit
2972dd27c1
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue