use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method unknown_editor_and_unknown_inviter_invited_you.
@Test
public void unknown_editor_and_unknown_inviter_invited_you() {
DecryptedGroupChange change = changeByUnknown().invite(you).build();
assertThat(describeChange(change), is(singletonList("You were invited to the group.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method member_removed_themselves.
@Test
public void member_removed_themselves() {
DecryptedGroupChange change = changeBy(bob).deleteMember(bob).build();
assertThat(describeChange(change), is(singletonList("Bob left the group.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method unknown_changed_avatar.
@Test
public void unknown_changed_avatar() {
DecryptedGroupChange change = changeByUnknown().avatar("Avatar3").build();
assertThat(describeChange(change), is(singletonList("The group avatar has been changed.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method unknown_denied_your_join_request.
@Test
public void unknown_denied_your_join_request() {
DecryptedGroupChange change = changeByUnknown().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 unknown_changed_membership_access.
@Test
public void unknown_changed_membership_access() {
DecryptedGroupChange change = changeByUnknown().membershipAccess(AccessControl.AccessRequired.ADMINISTRATOR).build();
assertThat(describeChange(change), is(singletonList("Who can edit group membership has been changed to \"Only admins\".")));
}
Aggregations