Update to libsignal 2.15.3 (#255)

This commit is contained in:
signal-stickers 2019-12-30 10:25:12 -05:00 committed by AsamK
parent 8115b16bfb
commit 85025d2e25
23 changed files with 107 additions and 83 deletions

View file

@ -1,8 +1,10 @@
package org.asamk.signal;
import org.whispersystems.signalservice.api.messages.SignalServiceGroup;
import org.whispersystems.signalservice.internal.util.Base64;
import org.whispersystems.signalservice.api.push.SignalServiceAddress;
import org.whispersystems.util.Base64;
import java.util.ArrayList;
import java.util.List;
class JsonGroupInfo {
@ -15,7 +17,10 @@ class JsonGroupInfo {
JsonGroupInfo(SignalServiceGroup groupInfo) {
this.groupId = Base64.encodeBytes(groupInfo.getGroupId());
if (groupInfo.getMembers().isPresent()) {
this.members = groupInfo.getMembers().get();
this.members = new ArrayList<>(groupInfo.getMembers().get().size());
for (SignalServiceAddress address : groupInfo.getMembers().get()) {
this.members.add(address.getNumber().get());
}
}
if (groupInfo.getName().isPresent()) {
this.name = groupInfo.getName().get();