👽 The removal of external id
This commit is contained in:
@ -127,9 +127,8 @@ class _ChannelListWidgetState extends State<ChannelListWidget> {
|
||||
: const EdgeInsets.symmetric(horizontal: 16);
|
||||
|
||||
if (item.type == 1) {
|
||||
final otherside = item.members!
|
||||
.where((e) => e.account.externalId != widget.selfId)
|
||||
.first;
|
||||
final otherside =
|
||||
item.members!.where((e) => e.account.id != widget.selfId).first;
|
||||
|
||||
return ListTile(
|
||||
leading: AccountAvatar(
|
||||
|
@ -176,7 +176,7 @@ class _ChannelMemberListPopupState extends State<ChannelMemberListPopup> {
|
||||
IconButton(
|
||||
color: Colors.red,
|
||||
icon: const Icon(Icons.remove_circle),
|
||||
onPressed: element.account.externalId == _accountId
|
||||
onPressed: element.account.id == _accountId
|
||||
? null
|
||||
: () => removeMember(element),
|
||||
),
|
||||
|
Reference in New Issue
Block a user