signal-desktop/ts/util
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
..
lint Add setting to toggle notification attention drawing (#4457) 2020-08-24 14:45:31 -07:00
arrayBufferToObjectURL.ts Turn on all of Microsoft's recommend lint rules 2018-05-23 16:26:47 -07:00
batcher.ts Moves libtextsecure to Typescript 2020-04-15 14:45:11 -07:00
callingPermissions.ts Calling support 2020-07-30 13:08:47 -07:00
callingTones.ts Calling support 2020-07-30 13:08:47 -07:00
cleanSearchTerm.ts Move left pane entirely to React 2019-03-12 17:44:14 -07:00
combineNames.ts Handle both given and family name in decrypted profile name 2020-01-13 17:28:28 -05:00
deleteForEveryone.ts Delete right away if we already have the message 2020-07-27 14:39:19 -07:00
downloadAttachment.ts Drop group messages that don't change group 2020-07-13 16:06:24 -07:00
formatDuration.ts Support for receiving View Once Video 2019-10-10 14:56:14 -07:00
formatRelativeTime.ts Update colors, icons, and fonts 2019-10-10 14:56:14 -07:00
getInitials.ts Move left pane entirely to React 2019-03-12 17:44:14 -07:00
getStringForProfileChange.ts Show notifications when a user's profile name changes 2020-07-30 13:27:44 -07:00
GoogleChrome.ts Disable inline rendering of SVG attachments 2018-06-15 17:49:35 -07:00
hasExpired.ts Move web_api.js and js/modules/crypto.js to TypeScript 2020-04-15 14:44:51 -07:00
hooks.ts Pre-alpha: React with any emoji, behind flag 2020-05-05 14:18:46 -07:00
imageToBlurHash.ts Message Requests 2020-07-30 13:08:44 -07:00
index.ts Show notifications when a user's profile name changes 2020-07-30 13:27:44 -07:00
isFileDangerous.ts Add 9 dangerous extensions and ignore trailing dot 2020-08-10 13:13:06 -07:00
libphonenumberInstance.ts Wire up all contact behaviors, refactor Contact type/selector 2018-05-07 19:11:35 -07:00
makeLookup.ts Move left pane entirely to React 2019-03-12 17:44:14 -07:00
migrateColor.ts Convert <Avatar /> component to Storybook 2020-08-13 13:53:45 -07:00
missingCaseError.ts Remove @prettier pragmas 2018-04-30 16:53:34 -04:00
registration.ts Force social graph to pull down updates after beta.11 install 2020-07-30 13:27:44 -07:00
safetyNumber.ts First-class profile name rendering 2020-07-30 13:27:41 -07:00
Sound.ts Calling support 2020-07-30 13:08:47 -07:00
storageService.ts Storage Service: Don't create groups from incoming v1 records 2020-08-11 21:07:55 -04:00
timer.ts Upgrade Prettier 2020-01-08 09:44:54 -08:00
waitBatcher.ts Improve message download performance 2019-10-10 14:56:14 -07:00
zkgroup.ts Adds support for versioned profiles 2020-04-15 16:12:28 -07:00