element-web/src/utils
Travis Ralston 987ad0b0db Check if users exist before inviting them and communicate errors
Fixes https://github.com/vector-im/riot-web/issues/3283
Fixes https://github.com/vector-im/riot-web/issues/3968
Fixes https://github.com/vector-im/riot-web/issues/4308
Fixes https://github.com/vector-im/riot-web/issues/1597
Fixes https://github.com/vector-im/riot-web/issues/6790

This does 3 things:
* Makes the `MultiInviter` check for a user profile before attempting an invite. This is to prove the user exists.
* Use the `MultiInviter` everywhere to avoid duplicating the logic. Although a couple places only invite one user, it is still worthwhile.
* Communicate errors from the `MultiInviter` to the user in all cases. This is done through dialogs, where some existed previously but were not invoked.

Specifically to the 403 error not working: What was happening was the `MultiInviter` loop was setting the `fatal` flag, but that didn't resolve the promise it stored. This caused a promise to always be open, therefore never hitting a dialog.
2018-11-29 15:05:53 -07:00
..
createMatrixClient.js Fall back to another store if indexeddb start fails 2018-10-04 13:40:56 +01:00
DecryptFile.js eslint --fix src/ 2018-10-26 22:50:38 -05:00
DirectoryUtils.js move room directory logic over from riot-web 2018-04-11 23:58:46 +01:00
DMRoomMap.js eslint --fix src/ 2018-10-26 22:50:38 -05:00
ErrorUtils.js Error on splash screen if sync is failing 2018-09-07 12:18:25 +01:00
FormattingUtils.js Group e2e keys into blocks of 4 characters 2017-05-22 12:01:09 +01:00
MegolmExportEncryption.js Run linting --fix 2017-11-16 13:19:36 +00:00
MultiInviter.js Check if users exist before inviting them and communicate errors 2018-11-29 15:05:53 -07:00
PinningUtils.js Show an indicator when there are any pins in the room 2017-11-03 20:00:48 -06:00
Receipt.js Run eslint --fix 2017-10-11 17:56:17 +01:00
WidgetUtils.js replace getMember(myId).membership with getMyMembership 2018-08-02 11:42:05 +02:00