Commit Graph

2000 Commits (10f224ede5015a4a1c66b6e41f18621c503c2edd)

Author SHA1 Message Date
Moxie Marlinspike 5942e93a33 Share profile key when initiating a conversation
// FREEBIE
8 years ago
Moxie Marlinspike c11f2eddf5 Display user profile information in settings activity
Allow for editing

// FREEBIE
8 years ago
Moxie Marlinspike df99deb480 Insert profile creation into registration flow, fix capture
// FREEBIE
8 years ago
Moxie Marlinspike e7c20499ec Display profile name in when appropriate
Display in conversation list, conversation actionbar, group
messages, and group members list when address is not in system
contacts

// FREEBIE
8 years ago
Moxie Marlinspike 77a216b705 Support for retrieving and storing profile information
Initial support for sharing profile keys

// FREEBIE
8 years ago
Moxie Marlinspike 1893047a78 Profile creation activity
// FREEBIE
8 years ago
Moxie Marlinspike da94fd5f9e Join group information into conversation list query
// FREEBIE
8 years ago
Moxie Marlinspike 159fdb317f Store system contacts display name in recipient preferences db
// FREEBIE
8 years ago
Moxie Marlinspike f61c52aace Consolidate user "capability" enums to a single value
// FREEBIE
8 years ago
Moxie Marlinspike 5a5e47f2df Move "directory" information into RecipientPreferencesDatabase
// FREEBIE
8 years ago
Moxie Marlinspike a02f223a96 Join recipient preferences into thread query for faster lookup
// FREEBIE
8 years ago
Moxie Marlinspike 375207f073 Switch MMS groups to use the group database infrastructure
Eliminate the concept of 'Recipients' (plural). There is now just
a 'Recipient', which contains an Address that is either an individual
or a group ID.

MMS groups now exist as part of the group database, just like push
groups.

// FREEBIE
8 years ago
mcloo 60eaade6b0 Fix plaintext export XML name escaping
Fixes #6830
Closes #6861
8 years ago
Benedikt Constantin Radtke 54396a3a9c Fix group info request responses
GroupRecords have a list of Addresses, not Strings.

Fixes #6881
Closes #6882
8 years ago
Moxie Marlinspike a80fe178ea Canonicalize addresses during import from system SMS database
// FREEBIE
8 years ago
Moxie Marlinspike 422b4c345b Catch IllegalArgumentException thrown internally on some devices
// FREEBIE
8 years ago
Moxie Marlinspike 47901e4198 Disallow alpha chars in country code field
// FREEBIe
8 years ago
Moxie Marlinspike 25a30d63a5 A blocked contact doesn't necessarily have to be a number
// FREEBIE
8 years ago
Moxie Marlinspike c5a7d320f7 Don't query contacts DB if we have nothing to query
// FREEBIE
8 years ago
Moxie Marlinspike 8de9261081 MMS addresses can be email addresses
Fixes #6853
// FREEBIE
8 years ago
Moxie Marlinspike cb4303ac23 Handle migration case where recipient_ids is completely empty
No idea how a DB is in that state, but apparently it's possible

Fixes #6850
// FREEBIE
8 years ago
Moxie Marlinspike 9a78615991 Switch regexp matcher to find() in order to handle alpha addresses
Any address with an alpha character anywhere in it should be used
as-is.

Fixes #6849

// FREEBIE
8 years ago
Moxie Marlinspike 7f46e99f9c Use SIM country code when registered number is unavailable
Convert directory operations to Addresses

Fixes #6845
// FREEBIE
8 years ago
Moxie Marlinspike 4838fade6c Fix typo
// FREEBIE
8 years ago
Moxie Marlinspike 1e934f6146 Escape addresess in thread and recipient pref migrations
For clients that have not yet migrated

// FREEBIE
8 years ago
Moxie Marlinspike aacf50316d Escape addresses in thread, recipient pref, and group databases
Fixes #6847
// FREEBIE
8 years ago
Moxie Marlinspike 24c48afd2e Fix typo in migration constraint resolution
Fixes #6846

// FREEBIE
8 years ago
Moxie Marlinspike 9a55632202 During migration, support recipient id of "-1"
Fixes #6843
// FREEBIE
8 years ago
Moxie Marlinspike 6ed549cfb2 If two recipient ids get canonicalized to the same thing, drop one
There's not a great way for me to know which of them is the "real"
entry, which means that I could be deleting the wrong one. In the
case of recipient "preferences," it's hopefully not a huge loss,
and there aren't any other great options.

Fixes #6838

// FREEBIE
8 years ago
Moxie Marlinspike 8a5c89244a Be more liberal with migration addresses.
Anything alpha is an address as-is.

// FREEBIE.
8 years ago
Moxie Marlinspike a67d0b18ff Be more liberal with external address formatting
A string like "bonbon" should just be "bonbon". That is apparently
a valid SMS source address.

// FREEBIE
8 years ago
Moxie Marlinspike abea2d0bdf Fix for MediaOverviewActivity NPE
// FREEBIE
8 years ago
Moxie Marlinspike 5f9a3b7930 Only lookup contact address by number if address is a phone number
// FREEBIE
8 years ago
Moxie Marlinspike 4229c21bdc Fix NPE on contact update request
Fixes #6840

// FREEBIE
8 years ago
Moxie Marlinspike 0ae60da68b Fix some bugs that would mis-label threads in migration
// FREEBIE
8 years ago
Moxie Marlinspike 737810475e Remove the Canonical Address Database
This was a holdover from Signal's origins as a pure SMS app.
It causes problems, depends on undefined device specific behavior,
and should no longer be necessary now that we have all the
information we need to E164 all numbers.

// FREEBIE
8 years ago
Moxie Marlinspike e452862813 Catch unsatisfied link error on start if webrtc so isn't found
// FREEBIE
8 years ago
Moxie Marlinspike 5be246ec8f Fix NPE for SMS pdus that could potentially be null
// FREEBIE
8 years ago
Moxie Marlinspike 72afb33c1b Add Moto G5 to hardware AEC blacklist
For #6241
// FREEBIE
8 years ago
Moxie Marlinspike 0b39224d88 getMemoryClass -> getLargeMemoryClass
Fixes #6812

// FREEBIe
8 years ago
Moxie Marlinspike 82b5b35d3b Eliminate MediaNetworkRequirement style attachment job handling
// FREEBIE
8 years ago
AndHell 10de144b77 Trim message text to prohibit sending empty whitespace messages
Closes #6788
8 years ago
Moxie Marlinspike c36db03a3a Prevent audio control click handler feedback loops
Fixes #6356
Fixes #6406
Fixes #6169

Closes #6800
// FREEBIE
8 years ago
Moxie Marlinspike 9dd508b6f5 Track pending incoming ice updates in addition to outgoing
// FREEBIE
8 years ago
Moxie Marlinspike 34443b059c Revert "We can now send trickle ice candidates immediately"
Need to hold off on this for some iOS changes.

This reverts commit 338f8de787.
8 years ago
Moxie Marlinspike 526d510423 Start creating "persistent" blobs in cache directory
Helps #5515
// FREEBIE
8 years ago
Gavin Howard 381237a315 Make plaintext export more compatible with SMS Backup and Restore
This commit adds the contact name and the readable date (and time) to
the plaintext export of every message. That's because that is how SMS
Backup and Restore does it, so this commit makes Signal more compatible.

Closes #6452
// FREEBIE
8 years ago
FeuRenard 512c6dc581 Keep screen off after end of audio playback
Fixes #6654
Closes #6669
// FREEBIE
8 years ago
Christian Ascheberg d0bb68e137 Fix group creation through group info request
Closes #6763
// FREEBIE
8 years ago
Christian Ascheberg 95d48bd3e9 Improve wording of joined contact notification
Fixes #6757
Closes #6764
// FREEBIE
8 years ago
Moxie Marlinspike 338f8de787 We can now send trickle ice candidates immediately
// FREEBIE
8 years ago
Moxie Marlinspike 2c4c0f1349 Archive sessions and generate new registration id on re-register
Fixes #6703
// FREEBIE
8 years ago
Moxie Marlinspike 39b95ca4ed Do more to keep MessageRetrievalService alive
Closes #6456
8 years ago
Moxie Marlinspike 074e46b2d9 Enable verification syncing
// FREEBIE
8 years ago
Moxie Marlinspike f193723182 Don't display verified marker in conversation if unregistered
Closes #6755
// FREEBIE
8 years ago
Moxie Marlinspike a0e23612d4 We need to disable this until push notifications contain more info
This could be a sync message, delivery receipt, or some other
message that isn't user-visible. The push notification content
would need to indicate whether that's the case in order to be
able to accurately display a notification

// FREEBIE
8 years ago
Moxie Marlinspike 04f364942e Don't update thread state for groups w/ verified/default SNs
Fixes #6744
// FREEBIE
8 years ago
Moxie Marlinspike 0cc5618ba9 Only offer share/compare options when SN calculation is complete
Now that we're loading this asynchronously, these options need
to respond asynchronously as well

Fixes #6739
// FREEBIE
8 years ago
Moxie Marlinspike 8208bbf3c0 Remove stale identity approval preference (no longer used)
Fixes #6745
// FREEBIE
8 years ago
Moxie Marlinspike 1c8077a7fe Switch from a hardware AEC whitelist back to a blacklist
Disabling OpenSL ES seems to make the hardware AEC "work" on
devices where it was previously causing problems.

Using the WebRTC-based software AEC *without* OpenSL ES seems to
be causing new problems.

Fixes #6737
Related #6432
Related #6241
// FREEBIE
8 years ago
Moxie Marlinspike ec240a94e6 Fix capitalization (innocuous)
// FREEBIE
8 years ago
Moxie Marlinspike 666be5f358 Preserve unverified status if aleady unverified on update
// FREEBIE
8 years ago
Moxie Marlinspike 7f76bcc976 Don't attempt to fetch profiles for SMS contacts
// FREEBIE
8 years ago
Moxie Marlinspike 2dbeebac77 Maintain placeholder encrypted body to avoid processing error
// FREEBIE
8 years ago
Moxie Marlinspike 0f6823d37e Null check just in case the profile comes back empty
// FREEBIE
8 years ago
Moxie Marlinspike f92d768be5 Correctly handle ice candidate for stale call
Fixes #6373
Fixes #6305
// FREEBIE
8 years ago
Moxie Marlinspike 1eccc07673 Temporarily disable synchronization messages
Until desktop catches up

// FREEBIE
8 years ago
Moxie Marlinspike 76c28cfa7a Add support for SN verification
// FREEBIE
8 years ago
Moxie Marlinspike 58273997b9 Explicitly check for disabled play services if needs update
Fixes #6381
// FREEBIE
8 years ago
Moxie Marlinspike 5672701a60 Add uncaught exception handler to message retrieval thread
Related #6644
// FREEBIE
8 years ago
Moxie Marlinspike 711740d156 Update to libsignal-service 2.5.10
// FREEBIE
8 years ago
Moxie Marlinspike b50a3fa2b8 Actually handle busy signal correctly
// FREEBIE
8 years ago
Moxie Marlinspike 7e40204eb2 Fix migration
Fixes #6695
// FREEBIE
8 years ago
Moxie Marlinspike d413b80b15 Canonicalize number when retrieving profile
// FREEBIE
8 years ago
Moxie Marlinspike 73410f64b5 Display a notification when unable retrieve messages for push
Fixes #6684
// FREEBIE
8 years ago
Moxie Marlinspike cd55feb2b9 Update signal-service to 2.5.9
// FREEBIE
8 years ago
FeuRenard a9ea672888 Resolve media message race condition
Fixes #6677
Closes #6681
8 years ago
Moxie Marlinspike 5455bdffb2 Make sure existing identity entries are approved in migration
// FREEBIE
8 years ago
Moxie Marlinspike 0367bf0de4 Update signal-service to 2.5.8
// FREEBIE
8 years ago
Moxie Marlinspike e9ae439b70 Fix for out of bounds on last seen search
Fixes #6661
Fixes #6660
// FREEBIE
8 years ago
Paride Legovini 99d229bb45 Don't connect to server if !isPushRegistered
Partial fix for #6620.
Closes #6627
// FREEBIE
8 years ago
Nicholas Rizzio 3d7331159f Set the advanced menu icon correctly
Fixes #6638
Closes #6639
// FREEBIE
8 years ago
Christian Ascheberg 662fe826cb Fix conversation list safety number change snippet for groups
Fixes #5985
Closes #6655
// FREEBIE
8 years ago
FeuRenard ec1a0547d6 Don't show sent checkmark for outgoing calls
Fixes #6502
Closes #6667
// FREEBIE
8 years ago
Moxie Marlinspike d507756821 Some identity key handling changes
1) Prefetch identity keys when possible

2) Always accept prefetched keys or keys from incoming messages

3) Block sending only if it's a recent change, or if always
   block is enabled

// FREEBIE
8 years ago
Moxie Marlinspike 4509077338 Lollipop MMS API doesn't seem to work reliably until L_MR1
Fixes #6663
Fixes #6668
// FREEBIE
8 years ago
Moxie Marlinspike 4dd5a92817 Fix for NPE when place picker name is unavailable
Fixes #6671
// FREEBIE
8 years ago
Moxie Marlinspike 782bd6003b Actually fallback to manual MMS receiving when system fails
Should resolve #6668 for tmobile users on older lollipop phones
// FREEBIE
8 years ago
Moxie Marlinspike b78c05e70b Keep track of when audio attachments are voice notes
// FREEBIE
8 years ago
Moxie Marlinspike e96bf2bdc7 Allow share intents for arbitrary file types
Fixes #6608
// FREEBIE
8 years ago
Moxie Marlinspike 1c8c6d5f85 Be sure to canonicalize numbers when updating groups
// FREEBIE
8 years ago
Moxie Marlinspike 1525d0833c Enforce ordered data channel
// FREEBIE
8 years ago
Moxie Marlinspike 3fd5e58bd5 Disable OpenSL ES by default
Fixes #6432
// FREEBIE
8 years ago
Moxie Marlinspike 51d6144591 Significant MMS changes
1) Remove all our PDU code and switch to the PDU code from the
   klinker library

2) Switch to using the system Lollipop MMS library by default,
   and falling back to our own custom library if that fails.

3) Format SMIL differently, using code from klinker instead of
   what we've pieced together.

4) Pull per-carrier MMS media constraints from the XML config
   files in the klinker library, instead of hardcoding it at 280kb.

Hopefully this is an improvement, but given that MMS is involved,
it will probably make things worse instead.
8 years ago
Audric Ackermann 165fae5734 Display contact custom label instead of phone number
Fixes #6211
8 years ago
AndHell dc18f73594 update contact query
update query to remove duplicated numbers

Fixes #4191
Closes #6475
8 years ago
Moxie Marlinspike 12ce92bb83 Fix super call
// FREEBIE
8 years ago
Moxie Marlinspike b0b08a37db Rename "other" to "sms"
// FREEBIE
8 years ago
FeuRenard 1b75d00de5 Color registration buttons correctly <API21
Fixes #6604
Closes #6605
// FREEBIE
8 years ago
Jonas Vautherin dd3cef5ec2 Refactor storage management to have a centralized,
clearer way to get the Signal output directories

Closes #6476
// FREEBIE
8 years ago
Moxie Marlinspike 757ccd0c36 Updated emoji set
Fixes #4279
Fixes #6587
8 years ago
Moxie Marlinspike e340f85258 Tint devices icon too
Fixes #6601
// FREEBIE
8 years ago
Mateo Hernandez a93fb1a0e5 Fix font size preference
Closes #6597
// FREEBIE
8 years ago
Christian Juner 1c94137f7a Fall back to Camera1Enumerator on exceptions
If Camera2Enumerator.isSupported() throws, consider Camera2Enumerator to
not be supported, log the Throwable, and use Camera1Enumerator instead.

Before this patch, an exception thrown by Camera2Enumerator.isSupported
would crash any Signal call (even if video was not enabled).

Fixes #6537
// FREEBIE
8 years ago
Moxie Marlinspike 2e8250f25e Add LG G3 to OpenSLES blacklist
// FREEBIE
8 years ago
Mateo Hernandez b17cba621e Show emoji-only messages larger
Closes #6531
// FREEBIE
8 years ago
Moxie Marlinspike cb670d6783 Improve UI send latency
// FREEBIE
8 years ago
Moxie Marlinspike 4d889a45e2 Blacklist Nexus 5 from OpenSL ES
Fixes #6432
// FREEBIE
8 years ago
Moxie Marlinspike 66d1d88686 Fix file push media constraint
// FREEBIE
8 years ago
Moxie Marlinspike 31a549449b Mutate Drawables we tint
Fixes #6575
// FREEBIE
8 years ago
Moxie Marlinspike 9bf198bb81 Add media constraints for arbitrary file types
Fixes #6573
// FREEBIE
8 years ago
Ahmed Ibrahim Khalil c2796285d5 Fix copying links when scrolling in #6343
Closes #6565
// FREEBIE
8 years ago
Moxie Marlinspike 25c7459464 Add support for notification priority preference
Fixes #6315
// FREEBIE
8 years ago
Moxie Marlinspike 2dceef50b7 Slim down some preference screens
// FREEBIE
8 years ago
Moxie Marlinspike 438a78ed30 Switch jobs with network requirement to timed wakelock
// FREEBIE
8 years ago
Moxie Marlinspike 8e7c7a9c54 Improve video thumbnail generation and handling on send side
For direct attach only

// FREEBIE
8 years ago
Moxie Marlinspike ad4657df1f Fix video selection support with extra mime type
// FREEBIE
8 years ago
Moxie Marlinspike 2b79e131a7 Support for sending arbitrary file types
// FREEBIE
8 years ago
Ahmed Ibrahim Khalil c3164a8e84 Support copying links on long click.
Fixes #6343
Closes #6454
8 years ago
Mateo Hernandez f07ce7b1f1 Move SMS/MMS pref hiding logic to onCreate
Closes #6528
// FREEBIE
8 years ago
Mateo Hernandez a353ebd834 Add tint to preference icons
Closes #6540
// FREEBIE
8 years ago
Moxie Marlinspike ddf6126abf Fix VideoPlayer Build.VERSION minimum
// FREEBIE
8 years ago
Mateo Hernandez c389a9d3ce Support non-BMP chars (e.g. emojis) in avatars
Closes #6527
Fixes #6522
// FREEBIE
8 years ago
Moxie Marlinspike fe1cc3d6d1 Adjust compose field look
1) Align top of compose bubble with top of attach/send icon

2) Simplify hint

3) Make hint size same as input size

// FREEBIE
8 years ago
Moxie Marlinspike 5f5db5ded7 Support for message body text size preference
// FREEBIE
8 years ago
Moxie Marlinspike e5a287b4e5 Add preference for SMS invitation prompt
// FREEBIE
8 years ago
Moxie Marlinspike 13d785894a Fix up preference screen a little
1) Remove phantom padding on left margin for all fragments

2) Move preferences around slightly

3) Add some card separators and style led list pref

// FREEBIE
8 years ago
Moxie Marlinspike 4fd41080ac Use exoplayer for playing video on API 16+ devices
// FREEBIE
8 years ago
Moxie Marlinspike fad697ba2a Fix CipherInputStream seek behavior
Fixes #6518
// FREEBIE
8 years ago
Moxie Marlinspike 51f27631ef Switch from hardware AEC blacklist to whitelist
Related #6241
// FREEBIE
8 years ago
Taylor Kline 04153a3869 Grey 'LED blink pattern' when LED Color is None
Add BooleanListPreference to allow pref_led_blink to depend on
pref_led_color being non-None.

Closes #6480
8 years ago
Simon b0b1cdef35 Add Redmi Note 4 to HARDWARE_AEC_BLACKLIST
See #6241
Closes #6516
// FRЕЕBIЕ
8 years ago
Moxie Marlinspike 6b7174bb35 Add OnePlus One to AEC blacklist
// FREEBIE
8 years ago
Moxie Marlinspike 92ea7549d4 Make UpdateApkJob use a timed wakelock
Fixes #6514
// FREEBIE
8 years ago
Moxie Marlinspike 0a4d1569fb Clean up file name some on save
Rusty Bird points out that we don't want the save action to create
files outside the parent or hidden files.

// FREEBIE
8 years ago
Moxie Marlinspike 7c5df81840 Fix for busted OpenSSL JCE provider on older versions of android
Fixes #6477
// FREEBIE
8 years ago
Moxie Marlinspike 2ce9eeabed Fix for broken attachments
Fixes #6467
// FREEBIE
8 years ago
Paride Legovini c97fa0d3d1 Blacklist OnePlus X from hardware AEC
Closes #6465
// FREEBIE
8 years ago
Moxie Marlinspike b0bd6ad729 Fix for crash when opening group conversation
Fixes #6464
// FREEBIE
8 years ago
FeuRenard 07c8db824e Disable screen during earpiece voice note playback
Fixes #6437
Closes #6445
// FREEBIE
8 years ago
Moxie Marlinspike 75782affd1 Adjust joined signal string
// FREEBIE
8 years ago
Moxie Marlinspike 3aae86d20c Update registration activity style
// FREEBIE
8 years ago
Moxie Marlinspike ad0f2830c8 Raise max gif limit to 25MB
// FREEBIE
8 years ago
Moxie Marlinspike 056f2717ed Remove duplicate column in SQL query
// FREEBIE
8 years ago
Moxie Marlinspike f67eb5f9f3 Support for receiving arbitrary attachment types
// FREEBIE
8 years ago
Moxie Marlinspike c69efbffd2 Don't enable speakerphone when video enabled if headset on
Fixes #6431
// FREEBIE
8 years ago
Moxie Marlinspike 01d66087aa Blacklist Nexus 6 from hardware AEC
Remove all blacklisting from library

// FREEBIE
8 years ago
Moxie Marlinspike e0e932df02 Add Samsung Galaxy S7 and Sony Xperia SP to AEC blacklist
Related #6241
// FREEBIE
8 years ago
Moxie Marlinspike 3ca653627d Add LG G3 to hardware AEC blacklist
Helps #6241
// FREEBIE
8 years ago
Moxie Marlinspike f4acaad407 Add Pixel, S5, Redmi Note 3, and Xiaomi Mi4 to AEC blacklist
Make these application-level changes

Helps #6241
// FREEBIE
8 years ago