use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method pending_member_declines_invite.
@Test
public void pending_member_declines_invite() {
DecryptedGroupChange change = changeBy(bob).uninvite(bob).build();
assertThat(describeChange(change), is(singletonList("Someone declined an invitation to the group.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method member_changes_title.
// Title change
@Test
public void member_changes_title() {
DecryptedGroupChange change = changeBy(alice).title("New title").build();
assertThat(describeChange(change), is(singletonList("Alice changed the group name to \"" + isolateBidi("New title") + "\".")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method member_invited_you.
@Test
public void member_invited_you() {
DecryptedGroupChange change = changeBy(alice).invite(you).build();
assertThat(describeChange(change), is(singletonList("Alice invited you to the group.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method member_uninvited_1_person.
// Member invitation revocation
@Test
public void member_uninvited_1_person() {
DecryptedGroupChange change = changeBy(alice).uninvite(bob).build();
assertThat(describeChange(change), is(singletonList("Alice revoked an invitation to the group.")));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class GroupsV2UpdateMessageProducerTest method member_promotes_you.
@Test
public void member_promotes_you() {
DecryptedGroupChange change = changeBy(bob).promote(you).build();
assertThat(describeChange(change), is(singletonList("Bob added you to the group.")));
}
Aggregations