mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Migrate local group to v2 if another member has migrated it
This commit is contained in:
parent
f6061f95de
commit
c10910e466
7 changed files with 101 additions and 34 deletions
|
@ -1,5 +1,6 @@
|
|||
package org.asamk.signal;
|
||||
|
||||
import org.asamk.signal.manager.GroupUtils;
|
||||
import org.asamk.signal.manager.Manager;
|
||||
import org.asamk.signal.storage.contacts.ContactInfo;
|
||||
import org.asamk.signal.storage.groups.GroupInfo;
|
||||
|
@ -380,7 +381,7 @@ public class ReceiveMessageHandler implements Manager.ReceiveMessageHandler {
|
|||
}
|
||||
} else if (groupContext.getGroupV2().isPresent()) {
|
||||
final SignalServiceGroupV2 groupInfo = groupContext.getGroupV2().get();
|
||||
byte[] groupId = m.getGroupId(groupInfo.getMasterKey());
|
||||
byte[] groupId = GroupUtils.getGroupId(groupInfo.getMasterKey());
|
||||
System.out.println(" Id: " + Base64.encodeBytes(groupId));
|
||||
GroupInfo group = m.getGroup(groupId);
|
||||
if (group != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue