use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method unknown_makes_member_admin.
@Test
public void unknown_makes_member_admin() {
DecryptedGroupChange change = changeByUnknown().promoteToAdmin(alice).build();
assertThat(describeChange(change), is(singletonList("Alice is now an admin.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method you_accept_invite.
@Test
public void you_accept_invite() {
DecryptedGroupChange change = changeBy(you).promote(you).build();
assertThat(describeChange(change), is(singletonList("You accepted the invitation to the group.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method member_approved_your_join_request.
@Test
public void member_approved_your_join_request() {
DecryptedGroupChange change = changeBy(bob).approveRequest(you).build();
assertThat(describeChange(change), is(singletonList("Bob approved your request to join the group.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method unknown_requested_to_join_the_group.
@Test
public void unknown_requested_to_join_the_group() {
DecryptedGroupChange change = changeByUnknown().requestJoin(alice).build();
assertThat(describeChange(change), is(singletonList("Alice requested to join via the group link.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method member_changes_attribute_access.
// Attribute access change
@Test
public void member_changes_attribute_access() {
DecryptedGroupChange change = changeBy(bob).attributeAccess(AccessControl.AccessRequired.MEMBER).build();
assertThat(describeChange(change), is(singletonList("Bob changed who can edit group info to \"All members\".")));
}
Aggregations