👽 The removal of external id

This commit is contained in:
2024-09-11 23:40:23 +08:00
parent bba38e6845
commit f3b2a2a0ac
12 changed files with 33 additions and 31 deletions

View File

@ -204,9 +204,8 @@ class _ChannelChatScreenState extends State<ChannelChatScreen>
String? placeholder;
if (_channel?.type == 1) {
final otherside = _channel!.members!
.where((e) => e.account.externalId != _accountId)
.first;
final otherside =
_channel!.members!.where((e) => e.account.id != _accountId).first;
title = otherside.account.nick;
placeholder = 'messageInputPlaceholder'.trParams(
{'channel': '@${otherside.account.name}'},

View File

@ -43,8 +43,7 @@ class _ChannelDetailScreenState extends State<ChannelDetailScreen> {
void checkOwner() async {
final AuthProvider auth = Get.find();
setState(() {
_isOwned =
auth.userProfile.value!['id'] == widget.channel.account.externalId;
_isOwned = auth.userProfile.value!['id'] == widget.channel.account.id;
});
}