Add send and receive support for group member labels.

This commit is contained in:
jeffrey-signal
2026-01-28 12:43:28 -05:00
committed by Greyson Parrelli
parent ce46c44b5d
commit 0a572153f0
21 changed files with 593 additions and 41 deletions

View File

@@ -20,6 +20,8 @@ message DecryptedMember {
bytes profileKey = 3;
uint32 joinedAtRevision = 5;
bytes pniBytes = 6;
string labelEmoji = 7;
string labelString = 8;
}
message DecryptedPendingMember {
@@ -56,6 +58,12 @@ message DecryptedModifyMemberRole {
Member.Role role = 2;
}
message DecryptedModifyMemberLabel {
bytes aciBytes = 1;
string labelEmoji = 2;
string labelString = 3;
}
// Decrypted version of message Group
// Keep field numbers in step
message DecryptedGroup {
@@ -102,6 +110,7 @@ message DecryptedGroupChange {
repeated DecryptedBannedMember newBannedMembers = 22;
repeated DecryptedBannedMember deleteBannedMembers = 23;
repeated DecryptedMember promotePendingPniAciMembers = 24;
repeated DecryptedModifyMemberLabel modifyMemberLabel = 26;
}
message DecryptedString {
@@ -128,4 +137,3 @@ enum EnabledState {
ENABLED = 1;
DISABLED = 2;
}

View File

@@ -35,6 +35,8 @@ message Member {
bytes profileKey = 3;
bytes presentation = 4;
uint32 joinedAtVersion = 5;
bytes labelEmoji = 6; // decrypts to a UTF-8 string
bytes labelString = 7; // decrypts to a UTF-8 string
}
message MemberPendingProfileKey {
@@ -141,6 +143,12 @@ message GroupChange {
Member.Role role = 2;
}
message ModifyMemberLabelAction {
bytes userId = 1;
bytes labelEmoji = 2; // decrypts to a UTF-8 string
bytes labelString = 3; // decrypts to a UTF-8 string
}
message ModifyMemberProfileKeyAction {
bytes presentation = 1;
bytes user_id = 2;
@@ -253,7 +261,8 @@ message GroupChange {
repeated AddMemberBannedAction add_members_banned = 22; // change epoch = 4
repeated DeleteMemberBannedAction delete_members_banned = 23; // change epoch = 4
repeated PromoteMemberPendingPniAciProfileKeyAction promote_members_pending_pni_aci_profile_key = 24; // change epoch = 5
// next: 26
repeated ModifyMemberLabelAction modifyMemberLabel = 26; // change epoch = 6;
// next: 27
}
bytes actions = 1;