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

RoomVC: Add a re-request keys button on message unable to decrypt #1901

Merged
merged 5 commits into from
Jun 13, 2018

Conversation

manuroe
Copy link
Member

@manuroe manuroe commented Jun 8, 2018

#1879

The wording in the modal is subject to change.

simulator screen shot - iphone 5s - 2018-06-08 at 17 16 48

@manuroe
Copy link
Member Author

manuroe commented Jun 12, 2018

Flow update: we make a re-request once the user taps on the link and we display the explanation modal in parallel.
If the UTD got fixed, the modal automatically disappears.

Modal content update:
simulator screen shot - iphone 5s - 2018-06-12 at 09 16 46

// Observe kMXEventDidDecryptNotification to remove automatically the dialog
// if the user has shared the keys from another device
id didDecryptObserver;
didDecryptObserver = [[NSNotificationCenter defaultCenter] addObserverForName:kMXEventDidDecryptNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notif) {
Copy link
Contributor

Choose a reason for hiding this comment

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

You should store didDecryptObserver as instance variable and remove it from NSNotificationCenter in dealloc. Otherwise this observer block could never be removed if controller is deallocated and "ok" alert not tapped.

@manuroe manuroe merged commit f92a66d into develop Jun 13, 2018
@manuroe manuroe deleted the riot_1879 branch June 13, 2018 08:42
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.

None yet

2 participants