use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method member_changed_group_link_access_to_any.
@Test
public void member_changed_group_link_access_to_any() {
DecryptedGroupChange change = changeBy(alice).inviteLinkAccess(AccessControl.AccessRequired.ANY).build();
assertThat(describeChange(change), is(singletonList("Alice turned on the group link with admin approval off.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method multiple_changes_by_unknown.
@Test
public void multiple_changes_by_unknown() {
DecryptedGroupChange change = changeByUnknown().addMember(bob).membershipAccess(AccessControl.AccessRequired.MEMBER).title("Title 2").avatar("Avatar 1").timer(600).build();
assertThat(describeChange(change), is(Arrays.asList("Bob joined the group.", "The group name has changed to \"" + isolateBidi("Title 2") + "\".", "The group avatar has been changed.", "The disappearing message timer has been set to 10 minutes.", "Who can edit group membership has been changed to \"All members\".")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method unknown_member_added_you_and_another_where_you_are_not_first.
@Test
public void unknown_member_added_you_and_another_where_you_are_not_first() {
DecryptedGroupChange change = changeByUnknown().addMember(alice).addMember(you).build();
assertThat(describeChange(change), is(Arrays.asList("You joined the group.", "Alice joined the group.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method member_denied_your_join_request.
@Test
public void member_denied_your_join_request() {
DecryptedGroupChange change = changeBy(alice).denyRequest(you).build();
assertThat(describeChange(change), is(singletonList("Your request to join the group has been denied by an admin.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method member_added_member.
// Member additions
@Test
public void member_added_member() {
DecryptedGroupChange change = changeBy(alice).addMember(bob).build();
assertThat(describeChange(change), is(singletonList("Alice added Bob.")));
}
Aggregations