Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle Membership #527

Merged
merged 5 commits into from
Aug 9, 2024
Merged

handle Membership #527

merged 5 commits into from
Aug 9, 2024

Conversation

maltee1
Copy link
Contributor

@maltee1 maltee1 commented Aug 8, 2024

matrix -> signal membership. Missing are knocks and joins, as they need access to groupmasterkeys through invite links, which is a little more complicated. Those will follow later.

pkg/signalid/ids.go Show resolved Hide resolved
pkg/connector/handlematrix.go Show resolved Hide resolved
pkg/connector/handlematrix.go Outdated Show resolved Hide resolved
@maltee1 maltee1 requested a review from tulir August 8, 2024 21:23
pkg/signalid/ids.go Outdated Show resolved Hide resolved
pkg/signalid/ids.go Outdated Show resolved Hide resolved
@maltee1 maltee1 force-pushed the handle_matrix_membership branch from 7908fbd to 0f3afe0 Compare August 9, 2024 20:14
@maltee1 maltee1 requested a review from tulir August 9, 2024 20:18
pkg/connector/handlematrix.go Outdated Show resolved Hide resolved
Comment on lines 42 to 57
func ParseUserLoginID(userLoginID networkid.UserLoginID) (uuid.UUID, error) {
userID, err := ParseUserLoginID(userLoginID)
if err != nil {
return uuid.Nil, err
}
return userID, nil
}

func ParseUserIDAsServiceID(userID networkid.UserID) (libsignalgo.ServiceID, error) {
return libsignalgo.ServiceIDFromString(string(userID))
}

func ParseUserLoginIDAsServiceID(userLoginID networkid.UserLoginID) (libsignalgo.ServiceID, error) {
return libsignalgo.ServiceIDFromString(string(userLoginID))
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think your force push reverted these fixes

Copy link
Member

@tulir tulir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise looks good

@tulir tulir merged commit c3fd55c into mautrix:main Aug 9, 2024
4 checks passed
@maltee1 maltee1 deleted the handle_matrix_membership branch August 9, 2024 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants