question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Have /away toggle state

See original GitHub issue

/away should toggle your state - i.e., if you’re away, it should mark you as /back, and if you’re around, it should mark you as /away

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
xPawcommented, Jan 8, 2017

Why would anyone ever try to /away twice though?

/away getting food then you realize you have to go for who knows how long, then you do /away

1reaction
autracommented, Feb 16, 2021

/help away in thelounge does say:

AWAY :[MSG]

Without an argument, it will set you back. With an argument, it will set you as AWAY with the specified message.

To elaborate, my path was the following:

  • Use /away in a channel, thinking it will clear my status.
  • I had no feedback whatsoever (the feedback in on the Freenode tab, not where you type the command, but the sidebar doesn’t display that i have a new message on Freenode tab) so I thought it worked ok
  • Later, much later, I realized that it didn’t work
  • I did /help away, which didn’t clear the confusion at all
  • I searched thelounge issues and find this one
  • yes, sorry, I didn’t read the linked PR, mainly because of this comment above

The rationale behind this is explained in #745 (but we did not mention the toggle).

So, the user experience is not great here. Let me suggest several possible improvements:

  • change the /help away message, mandatory imo. Most users won’t care about the standard as soon as things are explained properly. Also populate the /help back command (currently says “back Help not found”)
  • display clearly the current user status somewhere (to make it obvious what your current status is)
  • and/or display the You have been marked as <> message in all channels (like weechat does for example)
  • maybe also have a visual hint in the sidebar when something happens in the server chan?

If thelounge decides to go against the standard (which is understandable in this case, no strong opinion either way), please document it and show it properly in your UI, otherwise you’ll need to downvote many more users like me in issues like this one @brunnre8 😆

Thanks for your understanding.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Toggle state on and off with React Hooks - Josh W Comeau
There are times when we want some React state that should always hold a boolean value, and should only allow toggling between true...
Read more >
Toggle State With React Hooks - Magnificode
Create a basic toggle function using React Hooks. ... All together we have a way to get the current state, set the state,...
Read more >
How to toggle boolean state of a React component?
Since nobody posted this, I am posting the correct answer. If your new state update depends on the previous state, always use the...
Read more >
Using the Toggle State in Adobe XD - YouTube
... to learn how to use the Toggle State to quickly wire up components. ... for elements like switches, checkboxes, and slide out...
Read more >
Toggle State with WIX Animation | Beginner-friendly - YouTube
LINK TO CODE | https://bit.ly/3vL8j8D⭐PREVIEW WEBSITE | https://bit.ly/3A0u3Qq BLOG LINK | https://bit.ly/3bDd5y0⭐BUILD YOUR WEBSITE ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found