signal-desktop/ts/types
Danny Lin c8261814fd
Add setting to toggle notification attention drawing (#4457)
In many GNU/Linux setups, drawing attention when a notification arrives
causes the Signal window to steal focus immediately and interrupt the
user from what they were doing before the notification arrived. GNOME
Shell is the most prominent example of this behavior, but there are
likely other cases as well. Suddenly stealing focus on external events
like this can even pose a security problem in some cases, e.g. if the
user is in the middle of a typing a sudo password on one monitor while a
notification arrives and focuses Signal on another monitor. See #4452
for more information.

Disabling attention drawing entirely for Linux is also problematic
because some users rely on it as the sole indication of a new message,
as seen in #3582 and #3611.

Commit f790694559 improved the situation
by adding a hidden "--disable-flash-frame" command-line argument, but
this argument is undocumented and manually adding command-line arguments
to the application's .desktop file is not user-friendly.

This commit adds a settings option for whether to draw attention when a
new notification arrives to make it easy for all Linux users to obtain
the appropriate behavior without relying on an undocumented
command-line argument.

Fixes #4452.
2020-08-24 14:45:31 -07:00
..
message Show notifications when a user's profile name changes 2020-07-30 13:27:44 -07:00
Attachment.ts Message Requests 2020-07-30 13:08:44 -07:00
Calling.ts Calling support 2020-07-30 13:08:47 -07:00
Colors.ts Convert <Avatar /> component to Storybook 2020-08-13 13:53:45 -07:00
Contact.tsx Refactor: Prepare Message function props for conversation scope 2019-05-07 09:41:09 -07:00
Dialogs.ts Move all status/alert dialogs into the Left Pane 2020-02-12 13:30:58 -08:00
I18N.ts Show notifications when a user's profile name changes 2020-07-30 13:27:44 -07:00
IndexedDB.ts Remove @prettier pragmas 2018-04-30 16:53:34 -04:00
Logging.ts Refactor: Move data-access code to Typescript w/ shared interface 2020-04-15 14:45:11 -07:00
MapAsync.ts Remove @prettier pragmas 2018-04-30 16:53:34 -04:00
Message.ts Show notifications when a user's profile name changes 2020-07-30 13:27:44 -07:00
MIME.ts Do not recognize aiff files as audio 2020-04-16 12:19:37 -07:00
PhoneNumber.ts Virtualize search results - only render what's visible 2019-08-21 14:52:30 -07:00
Settings.ts Add setting to toggle notification attention drawing (#4457) 2020-08-24 14:45:31 -07:00
SocketStatus.ts Move all status/alert dialogs into the Left Pane 2020-02-12 13:30:58 -08:00
Util.ts Convert <Avatar /> component to Storybook 2020-08-13 13:53:45 -07:00