Commit Graph

7232 Commits

Author SHA1 Message Date
Fedor Indutny 746e99b8c2 Flush all watchers on empty queue 2021-03-25 17:00:03 -07:00
Josh Perez 67892d838c Fix sticker creator uploads 2021-03-25 16:56:13 -07:00
Evan Hahn de5943a5fb Fix bug where we'd remove profileKeyCredentials incorrectly 2021-03-25 12:05:55 -07:00
Evan Hahn afe135df0c Hide long message attachments in quotes 2021-03-25 11:36:50 -07:00
Evan Hahn 6f404648d7 Prefer author ID to phone number for message menu trigger ID 2021-03-24 16:42:08 -07:00
Fedor Indutny 7a9a4a1404 Clicking first bars of the waveform should rewind
It is practically impossible to rewind audio prior to this commit. With
this commit - clicking first two bars will rewind the audio to its very
start instead of updating its current play time to a specific non-zero v
alue.
2021-03-24 16:08:57 -07:00
Evan Hahn b44bf33256 Move audioPlayer duck test 2021-03-24 16:08:44 -07:00
Evan Hahn 77c306843d Fix error on message details screen with audio messages 2021-03-24 15:06:12 -07:00
Fedor Indutny 5f9a75d9f4 journal_mode=WAL and synchronous=NORMAL for database 2021-03-24 14:35:06 -07:00
Scott Nonnenberg 2d8f237b76 Send to just-removed folks in groupv2 removal operations 2021-03-24 14:28:55 -07:00
Fedor Indutny 7c4e4c97e7 Cache identicons to avoid performance hit on app start 2021-03-24 08:59:56 -05:00
Fedor Indutny 919259c960 Use non-subtle crypto in libsignal-protocol 2021-03-23 17:50:02 -07:00
Fedor Indutny 9e9d1c8e84 Consistent cursors in MessageAudio
Hovering over waveform should display "pointer" cursor, while countdown
should not be user-selectable and thus should display "default" cursor.
2021-03-23 14:03:16 -07:00
Scott Nonnenberg 2df7569389 saveMessages: Delete from messages_fts table even in insert case 2021-03-22 18:09:50 -07:00
Fedor Indutny a75402d290 Add timestamp utilities with helpful names 2021-03-22 16:08:52 -05:00
Fedor Indutny 9fa3359477 Mark attachment as corrupted if audio load failed
Sending corrupted audio should not leave user with non-functional
UI. Mark attachment as corrupted and show generic attachment UI for it
instead.
2021-03-22 11:51:53 -07:00
Fedor Indutny d6063d71e5 Change duration to countdown in MessageAudio
Message Audio UI should display remaining time not the duration of the
audio.
2021-03-22 11:15:59 -07:00
Evan Hahn 544e20e1d8 Fix main header sizing issues on Linux 2021-03-22 12:51:55 -05:00
Josh Perez 3324563762 v5.0.0-beta.0 v5.0.0-beta.0 2021-03-19 17:10:26 -04:00
Josh Perez e58975ec8b Fix for multiple at-mentions 2021-03-19 16:57:36 -04:00
Fedor Indutny 6fec6b2646 Fix attachments not loading for stickers/long messages 2021-03-19 16:57:36 -04:00
Fedor Indutny d7ec22fb0b Save attachment button should download attachment if needed 2021-03-19 16:57:36 -04:00
Scott Nonnenberg 58cb9fba6b Ensure we don't supply undefined to SyncMessage.Read protobuf 2021-03-19 16:57:36 -04:00
Evan Hahn df45e6a95f Attempt to fix flakiness with window title assertion 2021-03-19 16:57:36 -04:00
Evan Hahn 850e759579 Keeping profile data around longer in the face of errors 2021-03-19 16:57:36 -04:00
Evan Hahn c97bb0feee Auto-scroll the left pane less frequently 2021-03-19 16:57:36 -04:00
Evan Hahn 3d5f30560d Clean up isSearching selector 2021-03-19 16:57:36 -04:00
Evan Hahn 358838a6bc Style disabled <GroupTitleInput> 2021-03-19 16:57:36 -04:00
Evan Hahn b725ed2ffb Refresh profiles on app start (at most every 12 hours) 2021-03-19 16:57:36 -04:00
Evan Hahn 86530c3dc9 Increase readability of disappearing messages info text in dark mode 2021-03-19 16:57:36 -04:00
Fedor Indutny 3eaa47ec72 Remove useless logic in MessageAudio
`isLoading` was initially used to avoid duplicate loads of the audio on
re-renders, but this has to be handled in GlobalAudioContext not in
MessageAudio.
2021-03-19 16:57:36 -04:00
Scott Nonnenberg a3054ac0dc Update Sticker Creator references to LibSignalStore, logging in renderer 2021-03-19 16:57:36 -04:00
Scott Nonnenberg 260d288fc2 groups/updateGroup: Fix use of incrementMessageCounter 2021-03-19 16:57:36 -04:00
Fedor Indutny 11bcbded64 Storage Service fixes to prevent crashes on Android
* Merge report v1 group settings into local v2 group

The invariants of Storage Service mandate that the remote data always
takes precendence over the local data. We have to updated
blocked/whitelisted/... of the v2 group even if the record is for the v2
group. After doing such update - sync the manifest back to the Storage
Service with correct v2 record for the group.

* Repair errored records before uploading manifest

Fetch and re-attempt to merge errored records before uploading the
manifest. This is useful in the cases where we were not aware of the V1
group when the remote manifest was fetched, and became aware of it
before the new manifest is generated. In such scenario, we should fetch
the records for things we have failed on last time and attempt to merge
them with our data. If they are merged - we should not let their
storageIDs hang in the new manifest, which would cause group duplicates
and crashes on other clients.

* Create v1 group for storage service record

If we receive storage service record with v1 group that we didn't sync
yet (or just don't have for any other reason) - create it instead of
pushing it to `storage-service-error-records`.
2021-03-19 16:57:36 -04:00
Scott Nonnenberg 7ffc01f0b0 MessageReceiver: Restore queuing for in-order decryption 2021-03-19 16:57:36 -04:00
Scott Nonnenberg 0eec84391f MessageReceiver: Be resilient to failed updateCache call 2021-03-19 16:57:36 -04:00
Fedor Indutny 4116bce899 Fix cursor over MessageAudio's spinner
It is not a button, so the cursor has to be in `auto` mode.
2021-03-19 16:57:36 -04:00
Fedor Indutny f41ffda3e0 Update types: attachments may not have url property 2021-03-19 16:57:36 -04:00
Fedor Indutny aeab3f8d16 package: clean-transpile should remove tsc cache 2021-03-19 16:57:36 -04:00
Fedor Indutny 05f59f3db1 Add download button and pending spinner for audio messages 2021-03-19 16:57:36 -04:00
Fedor Indutny f98c3cba8c Preliminary support for better performance testing 2021-03-19 16:57:36 -04:00
Fedor Indutny fd8339e2ff Fix for UnregisteredUserError handling when fetching UUIDs 2021-03-19 16:57:36 -04:00
Fedor Indutny 6df82867a0 use incremental build mode for tsc 2021-03-19 16:57:36 -04:00
Fedor Indutny 529dd1a3cc Show download button for pending Link Preview images 2021-03-19 16:57:36 -04:00
Scott Nonnenberg 98c9992705 Fix out-of-order message changes; remove isGroupV2, and double-update 2021-03-19 16:57:36 -04:00
Evan Hahn 2d051e2390 Check for conflicts with group IDs 2021-03-19 16:57:35 -04:00
Fedor Indutny 1dcbee4e2a Use eslint --cache CLI argument to speed up linting 2021-03-19 16:57:35 -04:00
Fedor Indutny 3a94d2c75e Generate blurHash for outgoing link previews 2021-03-19 16:57:35 -04:00
Fedor Indutny b93164a8c0 Reduce size of asar file and unpacked asar folder 2021-03-19 16:57:35 -04:00
Fedor Indutny 59d1159c06 Set attachmentDownloadQueue = undefined on empty 2021-03-19 16:57:35 -04:00