Include reason for inactive group link in error message

This commit is contained in:
AsamK 2022-05-17 20:22:56 +02:00
parent e844abcad1
commit 376fcba9ec

View file

@ -262,7 +262,7 @@ public class GroupHelper {
groupJoinInfo = context.getGroupV2Helper()
.getDecryptedGroupJoinInfo(inviteLinkUrl.getGroupMasterKey(), inviteLinkUrl.getPassword());
} catch (GroupLinkNotActiveException e) {
throw new InactiveGroupLinkException("Group link inactive", e);
throw new InactiveGroupLinkException("Group link inactive (reason: " + e.getReason() + ")", e);
}
final var groupChange = context.getGroupV2Helper()
.joinGroup(inviteLinkUrl.getGroupMasterKey(), inviteLinkUrl.getPassword(), groupJoinInfo);