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

Integration federation lookup module #2226

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nqhhdev
Copy link
Member

@nqhhdev nqhhdev commented Feb 4, 2025

  • Setup module: Federation lookup
  • Setup module: Federation request token

Copy link

github-actions bot commented Feb 4, 2025

This PR has been deployed to https://linagora.github.io/twake-on-matrix/2226

);

if (registerResponse.token == null && registerResponse.token!.isEmpty) {
yield const Left(FederationIdentityGetTokenFailure());
Copy link
Member

@hoangdat hoangdat Feb 5, 2025

Choose a reason for hiding this comment

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

Suggested change
yield const Left(FederationIdentityGetTokenFailure());
yield const Left(FederationIdentityRegisterAccountFailure(identityServer));

Comment on lines +47 to +52
class FederationIdentityGetTokenFailure extends Failure {
const FederationIdentityGetTokenFailure();

@override
List<Object?> get props => [];
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
class FederationIdentityGetTokenFailure extends Failure {
const FederationIdentityGetTokenFailure();
@override
List<Object?> get props => [];
}
class FederationIdentityRegisterAccountFailure extends Failure {
const FederationIdentityRegisterAccountFailure(idenityServer);
final identityServer;
@override
List<Object?> get props => [];
}

yield const Left(FederationIdentityGetTokenFailure());
}

final hashDetails =
Copy link
Member

Choose a reason for hiding this comment

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

should verify hashDetails response


final FederationTokenInformation tokenInformation;

final Set<String>? phoneNumbers;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
final Set<String>? phoneNumbers;
final Map<ContactId, Set<String>>? phoneNumbers;


final Set<String>? phoneNumbers;

final Set<String>? emailAddresses;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
final Set<String>? emailAddresses;
final Map<ContactId, Set<String>>? emailAddresses;

);
}

Stream<Either<Failure, Success>> execute() {
Copy link
Member

Choose a reason for hiding this comment

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

should be a Future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants