👽 The removal of external id
This commit is contained in:
@ -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}'},
|
||||
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user