use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method unknown_reset_group_link.
@Test
public void unknown_reset_group_link() {
DecryptedGroupChange change = changeByUnknown().resetGroupLink().build();
assertThat(describeChange(change), is(singletonList("The group link has been reset.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method you_changed_group_link_access_to_administrator_approval.
@Test
public void you_changed_group_link_access_to_administrator_approval() {
DecryptedGroupChange change = changeBy(you).inviteLinkAccess(AccessControl.AccessRequired.ADMINISTRATOR).build();
assertThat(describeChange(change), is(singletonList("You turned on the group link with admin approval on.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method you_removed_you.
@Test
public void you_removed_you() {
DecryptedGroupChange change = changeBy(you).deleteMember(you).build();
assertThat(describeChange(change), is(singletonList("You left the group.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method you_requested_to_join_the_group.
// Group link request
@Test
public void you_requested_to_join_the_group() {
DecryptedGroupChange change = changeBy(you).requestJoin().build();
assertThat(describeChange(change), is(singletonList("You sent a request to join the group.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method you_reset_group_link.
// Group link reset
@Test
public void you_reset_group_link() {
DecryptedGroupChange change = changeBy(you).resetGroupLink().build();
assertThat(describeChange(change), is(singletonList("You reset the group link.")));
}
Aggregations