Create an AvatarStore

This commit is contained in:
AsamK 2021-01-13 22:35:58 +01:00
parent 6bd857ad8b
commit a643609ed2
9 changed files with 239 additions and 159 deletions

View file

@ -14,6 +14,7 @@ import org.whispersystems.signalservice.api.messages.SendMessageResult;
import org.whispersystems.signalservice.api.push.SignalServiceAddress;
import org.whispersystems.signalservice.api.util.InvalidNumberException;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
@ -193,7 +194,7 @@ public class DbusSignalImpl implements Signal {
}
final Pair<GroupId, List<SendMessageResult>> results = m.updateGroup(groupId == null
? null
: GroupId.unknownVersion(groupId), name, members, avatar);
: GroupId.unknownVersion(groupId), name, members, avatar == null ? null : new File(avatar));
checkSendMessageResults(0, results.second());
return results.first().serialize();
} catch (IOException e) {