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

Crypto: Key sharing: Move the check of incoming key requests so that … #1655

Merged
merged 1 commit into from
Nov 17, 2017

Conversation

manuroe
Copy link
Member

@manuroe manuroe commented Nov 16, 2017

…we can detect them at app startup.

element-hq/riot-meta#121

This is now required because, with matrix-org/matrix-ios-sdk#414, key requests can be available when app starts.

…we can detect them at app startup.

element-hq/riot-meta#121

This is now required because, with matrix-org/matrix-ios-sdk#414, key requests can be available when app starts.
@manuroe manuroe requested a review from giomfo November 16, 2017 13:48
Copy link
Member

@giomfo giomfo left a comment

Choose a reason for hiding this comment

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

Commented

if (mxSession.state == MXSessionStateRunning)
{
// Check if we need to display a key share dialog
[self checkPendingRoomKeyRequests];
Copy link
Member

Choose a reason for hiding this comment

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

You already check [[UIApplication sharedApplication] applicationState] inside the checkPendingRoomKeyRequests method

Copy link
Member Author

Choose a reason for hiding this comment

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

true but if you look at the whole state machine management where this piece of code sits, it appears natural to check the UIApplicationStateActive case at this moment.
At least, this is what I feel, no?

Copy link
Member

Choose a reason for hiding this comment

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

I understood, but we already know here that the applicationState is not background...

@manuroe manuroe merged commit b13bf69 into develop Nov 17, 2017
@manuroe manuroe deleted the permanent_pending_room_requests branch November 17, 2017 06:11
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