Greyson Parrelli
43068e0613
Reduce usage of Log.w()
2018-08-06 10:50:06 -04:00
Greyson Parrelli
a498176043
Switch logs to use new Log class.
2018-08-06 10:50:06 -04:00
Greyson Parrelli
dae655fd01
Fix conversation snippet for contact shares.
...
Previously, contact shares would be displayed as "Media Message". Now
it'll show the same as it does in a notification, namely
"{contact-emoji} {contact-name}".
2018-06-22 10:59:53 -07:00
Greyson Parrelli
79857b98b3
Fix bug with quoted reply notifications.
2018-06-18 14:08:47 -07:00
Greyson Parrelli
0b1b568893
Fix notifications for replies.
...
Notifications for replies will no longer display as a "Media Message" if
they do not contain media. Instead, they will just contain the reply
text.
Fixes #7798
2018-05-22 13:12:13 -04:00
Greyson Parrelli
54dbffaf30
Added ability to share contacts.
...
The "contact" option in the attachments tray now brings you through an
optimized contact sharing flow, allowing you to select specific fields
to share. The contact is then presented as a special message type,
allowing you to interact with the card to add the contact to your system
contacts, invite them to signal, initiate a signal message, etc.
2018-05-21 15:45:22 -04:00
Moxie Marlinspike
d567534609
replies
2018-04-16 17:33:26 -07:00
Sam Lanning
69f180a5ec
Fix some potential integer overflows for expiration time
...
In a number of locations in the code, there were conversions of message
expiration times from seconds to milliseconds, and then assigned to `long`
contexts. However these conversions were being done as integer multiplication
rather than long multiplication, meaning that there was a potential for
overflows.
Specifically, the maximum value that could be represented before overflowing
was (2^31 / 1000 / 60 / 60 / 24) days = 24.8 days (< 1 month). Luckily the
current allowed timeouts are all less than that value, but this fix would
remove the artificial restriction, effectively allowing values of 1000x greater
(68 years), at least for android.
Related #5775
Closes #7338
2018-03-07 09:55:24 -08:00
Moxie Marlinspike
71c7ef5b5e
Support for custom call ringtone selection and per-chat ringtones
2018-03-05 16:11:49 -08:00
Moxie Marlinspike
3633d805c8
More MasterSecret cleanup
2018-02-01 19:22:48 -08:00
Moxie Marlinspike
e6a069af6d
Remove unnecessary body model
2018-02-01 18:29:09 -08:00
Moxie Marlinspike
f36b296e2e
Migrate from SQLite and ciphertext blobs to SQLCipher + KeyStore
2018-01-30 17:27:05 -08:00
Moxie Marlinspike
763fa0dd21
Catch exception on image decoding error in notification
2018-01-18 10:11:33 -08:00
Moxie Marlinspike
4acedd2a4b
Fix notification ringtone problems
...
Default ringtone was often showing up as a call tone
Silent wasn't working correctly globally
2017-12-19 14:42:00 -08:00
Moxie Marlinspike
3523952ef9
As of 'N' we can no longer offer external ringtone selection
...
1. Replace custom ringtone picker with system Intent, since we
don't need it anymore. Fixes #7174
2. Make sure 'silent' ringtone selection is stored appropriately
Fixes #7115 Closes #7141
3. Replace any existing file:// notification URIs with the system
default Fixes #7234
2017-12-01 12:55:24 -08:00
Moxie Marlinspike
4c8e259b56
Update compileSdk to 27
2017-11-30 10:26:41 -08:00
Moxie Marlinspike
b80408bcb4
Use Glide for all contact photo caching
...
// FREEBIE
2017-10-11 17:47:12 -07:00
Moxie Marlinspike
10f224ede5
Update to glide 4.x
...
// FREEBIE
2017-10-11 17:47:12 -07:00
Moxie Marlinspike
17dd681dc8
Run all AsyncTasks on thread pool executor
...
Should Fix #7002
2017-10-23 13:03:32 -07:00
Moxie Marlinspike
e5e0bc2333
Reorganize preference widgets
...
// FREEBIE
2017-10-01 22:36:52 -07:00
Moxie Marlinspike
cb9bc9659b
Support for read receipts
...
// FREEBIE
2017-10-01 22:36:52 -07:00
Moxie Marlinspike
f17af19d09
Access all RecipientDatabase settings directly from Recipient
...
// FREEBIE
2017-08-28 10:30:50 -07:00
Moxie Marlinspike
d1790dfe17
Rename RecipientPreferences -> RecipientSettings
...
// FREEBIE
2017-08-28 10:30:50 -07:00
Moxie Marlinspike
8e6ca53023
Rename RecipientPreferencesDatabase -> RecipientDatabase
...
// FREEBIE
2017-08-28 10:30:50 -07:00
Moxie Marlinspike
6924f0519e
No need for a RecipientFactory any longer
...
// FREEBIE
2017-08-28 10:30:50 -07:00
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
2017-08-28 10:30:50 -07:00
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
2017-07-31 12:02:29 -07:00
Moxie Marlinspike
76c28cfa7a
Add support for SN verification
...
// FREEBIE
2017-06-09 19:58:01 -07:00
Moxie Marlinspike
73410f64b5
Display a notification when unable retrieve messages for push
...
Fixes #6684
// FREEBIE
2017-05-31 14:51:48 -07:00
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
2017-05-31 14:51:48 -07:00
Moxie Marlinspike
cb670d6783
Improve UI send latency
...
// FREEBIE
2017-04-26 10:27:30 -07:00
Moxie Marlinspike
25c7459464
Add support for notification priority preference
...
Fixes #6315
// FREEBIE
2017-04-21 23:05:59 -07:00
Moxie Marlinspike
94964474b2
So long redphone
...
// FREEBIE
2017-03-14 13:24:24 -07:00
Moxie Marlinspike
2f46c6ca1f
Don't redisplay notifications after they have been dismissed
...
Fixes #5751
Fixes #6218
// FREEBIE
2017-03-14 10:09:24 -07:00
Max Muth
2c1a5aef1c
Fix occasional crash on Android 7 direct reply
...
Fixes #6185
Closes #6322
//FREEBIE
2017-03-06 14:08:25 -08:00
Moxie Marlinspike
e92b51ed98
Run webrtc calls as foreground service
...
Should hopefully stop performance degredation when in background
Fixes #6249
// FREEBIE
2017-02-26 11:16:01 -08:00
Christian Ascheberg
44bb2c7c72
Do not call Notification.setSound with empty ringtone
...
Closes #6293
// FREEBIE
2017-02-24 17:27:25 -08:00
Moxie Marlinspike
8cd50d1e82
Update last seen state on desktop sync send
...
// FREEBIE
2017-02-22 15:05:35 -08:00
Moxie Marlinspike
1669731329
Support for using Signal without Play Services
...
This is now possible with beta calling, so non-GCM users are a
part of beta calling by default.
// FREEBIE
2017-02-20 12:00:03 -08:00
Moxie Marlinspike
cf891edce9
Should fix "locked message" on reminder notification issue
...
Fixes #5782
// FREEBIE
2017-02-19 12:29:33 -08:00
Mattias Eriksson
e2d94adfdb
Add Intent.FLAG_INCLUDE_STOPPED_PACKAGES
...
Add Intent.FLAG_INCLUDE_STOPPED_PACKAGES to Android Auto intents to
match https://developer.android.com/training/auto/messaging/index.html
// FREEBIE
2017-02-19 12:29:33 -08:00
Moxie Marlinspike
d9b42c4369
Support for a "new messages" divider in conversations
...
// FREEBIE
2017-02-19 12:29:33 -08:00
Moxie Marlinspike
86df150374
Update ShortcutBadger
...
Fixes #6069
// FREEBIE
2017-01-21 10:06:49 -08:00
Moxie Marlinspike
360c2b2a50
This attempts to work around a ROM crash bug
...
getActiveNotifications() seems to throw an NPE on some Motorola
ROMs, all of which appear to be 6.0.1. This change just swallows
the exception.
6.0 doesn't support bundled notifications, so I think it's alright
if they don't get canceled, since the summary notification will
still be displayed correctly.
This would only affect users who have an android wear device
attached to one of these buggy ROMs. By swallowing this exception,
they would not always get notifictions dismissed on their wear
device.
Fixes #6043
// FREEBIE
2017-01-17 20:41:24 -08:00
Moxie Marlinspike
373a0f9527
Support for Android N direct reply notifications
...
// FREEBIE
2017-01-02 17:17:48 -08:00
Moxie Marlinspike
a9bd84c69c
Support for bundled notifications (Android wear and Android N)
...
// FREEBIE
2017-01-02 17:17:48 -08:00
Mattias Eriksson
9148b7da5f
Initial Android Auto support
...
This adds android auto support accordign to
https://developer.android.com/training/auto/messaging/index.html#messaging
However, since android auto is not officially supported in my country,
the functionality is limited. Which means that I have not been able
to fully test everything yet.
What work is:
* Message notification is shown.
* When you click on it, the message is read.
Closes #5880
2016-11-27 19:33:11 -08:00
Moxie Marlinspike
3787551878
Squelch notifications for active desktop converastions
...
Additionally, limit audible notifications to once every 2 seconds.
// FREEBIE
Fixes #4905
Fixes #3165
Closes #5813
2016-11-24 08:09:34 -08:00
Moxie Marlinspike
69d0242574
Giphy integration
...
// FREEBIE
2016-10-18 10:28:42 -07:00
Moxie Marlinspike
8d44a145f0
Start expiration timer when marked read from notification
...
// FREEBIE
2016-10-10 11:13:37 -07:00
Christian Ascheberg
bd2fc82360
always set LED notification
...
Closes #5654
// FREEBIE
2016-09-14 16:37:28 -07:00
Christian Ascheberg
a698477e10
don't play in-thread notification sound in priority mode
...
Fixes #3337
Closes #5439
// FREEBIE
2016-08-31 19:57:23 -07:00
FeuRenard
a370f086c0
Respect privacy settings on ticker content for Android <5
...
Fixes #5517
Closes #5592
// FREEBIE
2016-08-31 18:44:15 -07:00
Moxie Marlinspike
d7e4928f22
Support for disappearing messages
...
// FREEBIE
2016-08-28 17:03:23 -07:00
Moxie Marlinspike
7b589c4300
TextSecure is now SignalService
...
// FREEBIE
2016-03-24 14:05:56 -07:00
Moxie Marlinspike
08e2221dc0
Support for synchronizing read state to/from desktop
...
// FREEBIE
2016-02-19 17:07:41 -08:00
Christian Ascheberg
694e6064bd
Add message notification task stack
...
Closes #4893
// FREEBIE
2016-02-10 16:08:26 -08:00
Moxie Marlinspike
6da86e482d
Support for dual-sim SMS/MMS functionality
...
Allow source selection for sending SMS/MMS, and display the
SIM that received SMS/MMS.
Fixes #555
Closes #5199
// FREEBIE
2016-02-09 16:53:15 -08:00
Christian Ascheberg
4049b997ee
fix silent in-thread notification
...
Fixes #5090
Closes #5091
// FREEBIE
2016-01-27 12:19:46 -08:00
agrajaghh
ed592950c0
setting to disable notifications for new contacts
...
also mute these notifications between 23:00 and 09:00
fixes #4572
Closes #4926
2015-12-24 07:47:25 -08:00
PurplePlatypus
fe5e101463
Change TS Media message timestamp from received time to sent time
...
Fix #3525
Closes #3535
//FREEBIE
2015-12-10 05:04:03 -08:00
Moxie Marlinspike
81fa209910
Use Ringtone instead of MediaPlayer directly
...
(Copied from rhodey's PR)
Fixes #3340
Closes #3342
// FREEBIe
2015-12-10 05:04:03 -08:00
Moxie Marlinspike
3b80e35547
Display group info in message notifications
...
Fixes #1033
Fixes #2558
Closes #3020
// FREEBIE
2015-12-10 05:04:03 -08:00
char32
796decdb0f
Switch from 'Contents Hidden' to 'New message'
...
Fixes #4004
Closes #4566
2015-11-26 08:07:31 -08:00
Moxie Marlinspike
72b9c37ec8
Mark muted messages as read when in thread
...
Fixes #3562
Closes #3643
// FREEBIE
2015-11-04 17:56:20 -08:00
Moxie Marlinspike
d2f44f6584
Join attachments instead of running an asynchronous query.
...
No more SlideDeck futures, just SlideDecks.
// FREEBIE
2015-10-22 10:31:22 -07:00
Moxie Marlinspike
09e52834a6
Refactor "parts" to contain MMS/PDU madness to MMS code paths.
...
Closes #4248
// FREEBIE
2015-10-15 11:11:39 -07:00
Moxie Marlinspike
4044da849e
Replace all strings containing 'TextSecure' with 'Signal'
...
// FREEBIE
2015-09-30 14:30:10 -07:00
Moxie Marlinspike
16e258bdbc
Only schedule a reminder if it's an alerting notification.
...
// FREEBIE
2015-09-09 16:53:00 -07:00
Moxie Marlinspike
5ef65f039d
Run notification reminder broadcast in an AsyncTask
...
Fixes #4016
// FREEBIE
2015-09-04 09:40:59 -07:00
Moxie Marlinspike
82b74e8ce7
Fix NPE on media message with no media.
...
Fixes #3921
// FREEBIE
2015-08-10 09:33:57 -07:00
Moxie Marlinspike
58fd6f9273
Actually play the default notification sound.
...
Fixes #3912
// FREEBIE
2015-08-07 12:52:32 -07:00
McLoo
716ed94ca1
Fix notification repeat
...
by adding an undeniable truth
Until now we use the reminderCount as threadId and
afterwards we updateNotification with a repeat count of always 0
Fixes #3893
Closes #3896
2015-08-06 10:15:14 -07:00
Moxie Marlinspike
f8bb065ffd
Support for images in notifications.
...
Closes #3859
Fixes #1858
// FREEBIE
2015-08-05 13:08:28 -07:00
Moxie Marlinspike
120cde9917
Support for notification privacy settings.
...
// FREEBIE
2015-08-05 13:06:37 -07:00
Moxie Marlinspike
3bac3c6263
Don't leak activity context to shortcut badger.
...
// FREEBIE
2015-07-22 12:24:41 -07:00
Moxie Marlinspike
90d5e9dccd
Fix for double notification when locked.
...
Fixes #3702
// FREEBIE
2015-07-20 18:00:48 -07:00
Moxie Marlinspike
8d9ae731ef
Only use MasterSecret for local message encryption.
...
Not for the axolotl store.
// FREEBIE
2015-07-16 11:15:56 -07:00
Moxie Marlinspike
13eed3baa7
Fix up wearable reply stuff a little.
...
1) Don't include MasterSecret in PendingIntents.
2) Correctly reply to non-push group threads, rather than
just an individual in that group.
// FREEBIE
2015-07-08 13:13:49 -07:00
Christoph Haefner
f0b2cc5590
Added WearReplyReceiver
2015-07-08 12:55:46 -07:00
Moxie Marlinspike
4ea40b30a2
Switch to enum and theme type for MaterialColor.
...
// FREEBIE
2015-07-01 12:24:38 -07:00
Moxie Marlinspike
9bf7562d49
Use theme-defined weights instead of ThemeType.
...
// FREEBIE
2015-07-01 12:24:38 -07:00
Moxie Marlinspike
ce2f66ad17
Refactor colorization to support dark theme.
...
// FREEBIE
2015-07-01 12:24:38 -07:00
Moxie Marlinspike
7cdc26a8ba
Shorten "mark as read" to "mark read" to make room in notification
...
// FREEBIE
2015-07-01 08:23:43 -07:00
Moxie Marlinspike
fb9f16ad29
Colorize conversations.
...
// FREEBIE
2015-06-27 19:43:18 -07:00
Moxie Marlinspike
64df85f3ee
Refactor contact photo logic to not reuse drawables.
...
// FREEBIE
2015-06-27 19:43:18 -07:00
Moxie Marlinspike
2016fa315b
Support for quick reply from notifications.
...
Fixes #483
Closes #3455
// FREEBIE
2015-06-24 18:30:55 -07:00
Moxie Marlinspike
2fb9806f36
Null check for corner case NPE.
...
Fixes #3441
// FREEBIE
2015-06-18 11:10:11 -07:00
Moxie Marlinspike
a11f6ea1e6
Don't signal on updates from muted threads.
...
Fixes #3393
// FREEBIE
2015-06-11 13:10:39 -07:00
Moxie Marlinspike
40af2a81db
Support for per-recipient muting, blocking, and ringtones.
...
Fixes #757
Fixes #354
Fixes #222
Closes #1815
Closes #3378
// FREEBIE
2015-06-11 11:09:02 -07:00
Jake McGinty
fca98c42d5
fix Uri.parse NPE in notifier
...
Closes #3241
// FREEBIE
2015-05-22 14:14:42 -07:00
Rhodey Orbits
ee73883214
remove 'Media message:' prefix from MMS notification notification
...
Fixes #2928
Closes #3152
// FREEBIE
2015-05-14 10:23:32 -07:00
Moxie Marlinspike
e62528d3e2
Fix for lollipop notifications not rendering generated avatars.
...
// FREEBIE
Fixes #3120
Closes #3122
2015-05-07 16:34:17 -07:00
Moxie Marlinspike
41cad291f9
Display a generated avatar icon rather than a single default.
...
If the contact doesn't have an image, render a color-coded
background and the first letter of the contact's name.
1) Don't display anything during recipient resolution.
2) Display a # icon in material gray for recipients with no name.
3) Display a material group icon in material gray for groups with
no avatar icon set.
Closes #3104
// FREEBIE
2015-05-07 10:36:54 -07:00
Christoph Haefner
424a463b21
Add notification functionality to Android Wear devices.
...
This should allow for Android Wear device- and Pebble-users to
easily mark an incoming message as read via the smartwatch.
http://developer.getpebble.com/blog/2014/12/19/Leverage-Android-Actionable-Notifications/
Closes #3010
2015-04-23 10:25:22 -07:00
agrajaghh
bcd9aa84d6
show message timestamp in the notification
...
Fixes #2632
Closes #2635
2015-04-22 11:44:48 -07:00
Carey Metcalfe
7724964a36
Correct the notification repeat interval
...
Switch to 2min from 10sec.
Closes #3002
2015-04-16 08:39:40 -07:00
Jake McGinty
64fc83326f
bump sdk to 22, update notifications
...
Notification updates include:
1) Setting theme colors
2) Using high-res contact photos
3) Updating the notification icon to latest
Closes #2935
Fixes #2923
Fixes #2732
Fixes #2548
// FREEBIE
2015-04-16 08:38:31 -07:00
Jake McGinty
4a9028aedd
only set non-null bitmaps for notifications
...
Fixes #2960
Closes #2979
// FREEBIE
2015-04-13 13:45:46 -07:00
Jake McGinty
34fa05cccc
Fix multi-thread intents launching a conversation
...
Fixes #2877
Closes #2880
// FREEBIE
2015-04-03 14:48:38 -07:00