Fix SSK message sending

This commit is contained in:
nielsandriesse 2020-08-11 19:32:10 +10:00
parent d8986f6147
commit c9c902218e

View File

@ -373,7 +373,7 @@ object ClosedGroupsProtocol {
if (GroupUtil.isOpenGroup(groupID)) { if (GroupUtil.isOpenGroup(groupID)) {
return listOf( Address.fromSerialized(groupID) ) return listOf( Address.fromSerialized(groupID) )
} else { } else {
val groupPublicKey = GroupUtil.getDecodedId(groupID).toHexString() val groupPublicKey = GroupUtil.getDecodedId(GroupUtil.getDecodedStringId(groupID)).toHexString()
if (DatabaseFactory.getSSKDatabase(context).isSSKBasedClosedGroup(groupPublicKey)) { if (DatabaseFactory.getSSKDatabase(context).isSSKBasedClosedGroup(groupPublicKey)) {
return listOf( Address.fromSerialized(groupPublicKey) ) return listOf( Address.fromSerialized(groupPublicKey) )
} else { } else {