Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
megrogan committed Sep 26, 2024
1 parent f8e6bff commit 11da3bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/libraries/group_chat_core/src/members.rs
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ mod tests {
let member_bytes = msgpack::serialize_then_unwrap(&member);
let member_bytes_len = member_bytes.len();

assert_eq!(member_bytes_len, 127);
assert_eq!(member_bytes_len, 137);

let _deserialized: GroupMemberInternal = msgpack::deserialize_then_unwrap(&member_bytes);
}
Expand Down
4 changes: 4 additions & 0 deletions backend/libraries/types/can.did
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ type CommunityMembership = record {
role : CommunityRole;
rules_accepted : bool;
display_name : opt text;
lapsed : bool;
};

type UserGroup = record {
Expand Down Expand Up @@ -436,6 +437,7 @@ type GroupMembership = record {
my_metrics : ChatMetrics;
latest_threads : vec GroupCanisterThreadDetails;
rules_accepted : bool;
lapsed : bool;
};

type CommunityCanisterCommunitySummaryUpdates = record {
Expand Down Expand Up @@ -466,6 +468,7 @@ type CommunityMembershipUpdates = record {
role : opt CommunityRole;
rules_accepted : opt bool;
display_name : TextUpdate;
lapsed : opt bool;
};

type CommunityCanisterChannelSummaryUpdates = record {
Expand Down Expand Up @@ -503,6 +506,7 @@ type GroupMembershipUpdates = record {
latest_threads : vec GroupCanisterThreadDetails;
unfollowed_threads : vec MessageIndex;
rules_accepted : opt bool;
lapsed : opt bool;
};

type SelectedGroupUpdates = record {
Expand Down

0 comments on commit 11da3bc

Please sign in to comment.