Use identifiers from sdk
This commit is contained in:
parent
6b93b8d393
commit
1bf9dbecf6
|
@ -47,7 +47,7 @@ class _ChatDetailsState extends State<ChatDetails> {
|
||||||
}
|
}
|
||||||
|
|
||||||
void setCanonicalAliasAction(context, s) async {
|
void setCanonicalAliasAction(context, s) async {
|
||||||
final String domain = widget.room.client.userID.split(":")[1];
|
final String domain = widget.room.client.userID.domain;
|
||||||
final String canonicalAlias = "%23" + s + "%3A" + domain;
|
final String canonicalAlias = "%23" + s + "%3A" + domain;
|
||||||
final Event aliasEvent = widget.room.getState("m.room.aliases", domain);
|
final Event aliasEvent = widget.room.getState("m.room.aliases", domain);
|
||||||
final List aliases =
|
final List aliases =
|
||||||
|
@ -282,7 +282,7 @@ class _ChatDetailsState extends State<ChatDetails> {
|
||||||
?.replaceAll("#", "") ??
|
?.replaceAll("#", "") ??
|
||||||
I18n.of(context).alias,
|
I18n.of(context).alias,
|
||||||
prefixText: "#",
|
prefixText: "#",
|
||||||
suffixText: widget.room.client.userID.split(":")[1],
|
suffixText: widget.room.client.userID.domain,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -104,7 +104,7 @@ class _NewPrivateChatState extends State<_NewPrivateChat> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final String defaultDomain = Matrix.of(context).client.userID.split(":")[1];
|
final String defaultDomain = Matrix.of(context).client.userID.domain;
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text(I18n.of(context).newPrivateChat),
|
title: Text(I18n.of(context).newPrivateChat),
|
||||||
|
@ -190,7 +190,7 @@ class _NewPrivateChatState extends State<_NewPrivateChat> {
|
||||||
),
|
),
|
||||||
title: Text(
|
title: Text(
|
||||||
foundProfile["display_name"] ??
|
foundProfile["display_name"] ??
|
||||||
foundProfile["user_id"].split(":").first.substring(1),
|
foundProfile["user_id"].localpart,
|
||||||
style: TextStyle(),
|
style: TextStyle(),
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
),
|
),
|
||||||
|
|
|
@ -117,8 +117,8 @@ packages:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: "4bf6a4bcb60ca8877b5f2d435978e47358c20cad"
|
ref: "38f7bf947610b9b19a81aa9db05d76b460d116d9"
|
||||||
resolved-ref: "4bf6a4bcb60ca8877b5f2d435978e47358c20cad"
|
resolved-ref: "38f7bf947610b9b19a81aa9db05d76b460d116d9"
|
||||||
url: "https://gitlab.com/famedly/famedlysdk.git"
|
url: "https://gitlab.com/famedly/famedlysdk.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.0.1"
|
version: "0.0.1"
|
||||||
|
|
|
@ -27,7 +27,7 @@ dependencies:
|
||||||
famedlysdk:
|
famedlysdk:
|
||||||
git:
|
git:
|
||||||
url: https://gitlab.com/famedly/famedlysdk.git
|
url: https://gitlab.com/famedly/famedlysdk.git
|
||||||
ref: 4bf6a4bcb60ca8877b5f2d435978e47358c20cad
|
ref: 38f7bf947610b9b19a81aa9db05d76b460d116d9
|
||||||
|
|
||||||
localstorage: ^3.0.1+4
|
localstorage: ^3.0.1+4
|
||||||
bubble: ^1.1.9+1
|
bubble: ^1.1.9+1
|
||||||
|
|
Loading…
Reference in a new issue