refactor: Update SDK and enable login with email and phone

This commit is contained in:
Christian Pauly 2021-03-09 19:39:25 +01:00
commit 39421fae32
8 changed files with 47 additions and 12 deletions

View file

@ -87,7 +87,7 @@ class _ChatDetailsState extends State<ChatDetails> {
newAliases.add(canonicalAlias);
final response = await showFutureLoadingDialog(
context: context,
future: () => room.client.requestRoomAliasInformations(canonicalAlias),
future: () => room.client.requestRoomAliasInformation(canonicalAlias),
);
if (response.error != null) {
final success = await showFutureLoadingDialog(
@ -327,8 +327,7 @@ class _ChatDetailsState extends State<ChatDetails> {
// okay, we need to test if there are any emote state events other than the default one
// if so, we need to be directed to a selection screen for which pack we want to look at
// otherwise, we just open the normal one.
if ((room.states
.states['im.ponies.room_emotes'] ??
if ((room.states['im.ponies.room_emotes'] ??
<String, Event>{})
.keys
.any((String s) => s.isNotEmpty)) {