👽 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),
|
||||
),
|
||||
|
@ -41,8 +41,8 @@ class _ChatEventActionState extends State<ChatEventAction> {
|
||||
setState(() => _isBusy = true);
|
||||
|
||||
setState(() {
|
||||
_canModifyContent = auth.userProfile.value!['id'] ==
|
||||
widget.item.sender.account.externalId;
|
||||
_canModifyContent =
|
||||
auth.userProfile.value!['id'] == widget.item.sender.account.id;
|
||||
_isBusy = false;
|
||||
});
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ class _PostActionState extends State<PostAction> {
|
||||
|
||||
setState(() {
|
||||
_canModifyContent =
|
||||
auth.userProfile.value!['id'] == widget.item.author.externalId;
|
||||
auth.userProfile.value!['id'] == widget.item.author.id;
|
||||
_isBusy = false;
|
||||
});
|
||||
}
|
||||
|
@ -173,7 +173,7 @@ class _RealmMemberListPopupState extends State<RealmMemberListPopup> {
|
||||
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