Prevent summoning own modal in chat
Forgot about De Morgan's Laws!
This commit is contained in:
parent
870e8ae916
commit
b63a10f846
1 changed files with 3 additions and 1 deletions
|
|
@ -20,9 +20,11 @@ class ChatMessage extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
void onLongPressName() {
|
||||
// Ignore if the message is a recent message in the modal bottom sheet.
|
||||
if (isModal) return;
|
||||
|
||||
if (ircMessage.user == null && ircMessage.user == chatStore.auth.user.details?.login) return;
|
||||
// Ignore if long-pressing own username.
|
||||
if (ircMessage.user == null || ircMessage.user == chatStore.auth.user.details?.login) return;
|
||||
|
||||
HapticFeedback.lightImpact();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue