use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method unknown_added_by_invite.
@Test
public void unknown_added_by_invite() {
DecryptedGroupChange change = changeByUnknown().promote(you).build();
assertThat(describeChange(change), is(singletonList("You joined the group.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method unknown_changed_group_link_access_to_any.
@Test
public void unknown_changed_group_link_access_to_any() {
DecryptedGroupChange change = changeByUnknown().inviteLinkAccess(AccessControl.AccessRequired.ANY).build();
assertThat(describeChange(change), is(singletonList("The group link has been turned on with admin approval off.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method unknown_changed_attribute_access.
@Test
public void unknown_changed_attribute_access() {
DecryptedGroupChange change = changeByUnknown().attributeAccess(AccessControl.AccessRequired.ADMINISTRATOR).build();
assertThat(describeChange(change), is(singletonList("Who can edit group info has been changed to \"Only admins\".")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method unknown_revokes_your_invite.
@Test
public void unknown_revokes_your_invite() {
DecryptedGroupChange change = changeByUnknown().uninvite(you).build();
assertThat(describeChange(change), is(singletonList("An admin revoked your invitation to the group.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method unknown_promotes_pending_member.
@Test
public void unknown_promotes_pending_member() {
DecryptedGroupChange change = changeByUnknown().promote(alice).build();
assertThat(describeChange(change), is(singletonList("Alice joined the group.")));
}
Aggregations