Commit Graph

36 Commits

Author SHA1 Message Date
Max Radermacher
369118b045 Add support for replying to gift messages 2022-07-07 10:49:20 -07:00
Evan Hahn
5696c50d7d Make some outgoing message params optional
We frequently send outgoing messages with some parameters, like "link
preview" or "quoted reply", empty.

This change lets those parameters be omitted (instead of explicitly
empty) for brevity.

This is a stylistic change and should have no user impact.

Tested this by sending a regular message, a message with a link preview,
and two messages with photos.
2022-06-23 12:53:05 +00:00
Evan Hahn
b5b560a0fe Shorten message send expiry timer lookup
Similar to e79f37cc01.
2022-06-22 14:35:48 -07:00
Evan Hahn
7e0fa84c6d Only add necessary completion callbacks to message send transaction
You can add callbacks to be executed when a transaction completes. We
usually do this when sending messages, but not always.

Previously, the logic was "add a callback that runs the completion
function, if it exists." Now, the logic is "if the completion function
exists, add a callback that runs it."

I think this slightly better reflects our intent, and helps reduce
memory usage (and potential capturing?) slightly.
2022-06-21 16:46:59 +00:00
Nora Trapp
7bd167f815
Initial story sending support
* Little fix for context menu

* Add 'My Stories' section to stories tab

* Add new story thread types

* Show stories in conversation picker

* Support for sending stories

* Update story list when sending stories

* Add basic 'My Stories' view controller

* Initial stories settings screens

* Consolidate TSPrivateStoryThread and TSMyStoryThread into one class

* Require an explicit read transaction to initialize an outgoing message

* Fix linting

* Allow enabling group story from internal settings

* Fix tests

* PR Feedback
2022-06-10 22:28:03 -04:00
Evan Hahn
29c0ddf60e Fix violations of SwiftLint's attributes rule
_I recommend reviewing this with whitespace changes disabled._

Most of these were `@objc` being on the same line, which I fixed with [a
silly script][1]—probably could've used `sed` if I were wiser. The rest
were manual fixes.

See [the SwiftLint documentation for this rule][0].

[0]: https://realm.github.io/SwiftLint/attributes.html
[1]: https://gist.github.com/EvanHahn-Signal/d353c93fa269c82b96baca0a1086521f
2022-05-14 09:07:42 -05:00
Max Radermacher
b1874b4c5f Fix some _isDebugAssertConfiguration warnings
By moving the check after the `isLoggingEnabled()` check, there isn’t
unreachable code, so the compiler warning goes away. (The `_isDebug…`
check has to be second, or the `isLoggingEnabled()` call would be
unreachable code.)

For the other case, I wrapped the entire check in a single `assert`,
avoiding the `_isDebugAssertConfiguration` call altogether. (This one
wasn’t a warning, but I think this approach is more canonical, and it’s
probably best to avoid `_` functions where possible.)
2022-05-06 09:48:50 -05:00
Nora Trapp
f2473a01a0 Fix quoting story reactions 2022-04-21 11:00:12 -07:00
Nora Trapp
1ce7bdd672 Support sending 1:1 story replies 2022-04-21 10:58:28 -07:00
Nora Trapp
27e03b6a70 Render 1:1 story replies 2022-04-15 19:28:14 -07:00
Michelle Linington
739af9372a Require transaction to check blocked thread state 2022-04-08 19:01:43 -07:00
Nora Trapp
78eb06a812 Update story list sorting to match spec 2022-03-31 00:40:47 -07:00
Dimitris Apostolou
62724cf0be Fix typos 2022-03-18 11:31:06 -07:00
Martin Böttcher
000c4c282b Merge branch 'master' into martin/IOS-2234 2022-03-17 09:09:37 +01:00
Nora Trapp
6810c76062 Switch StoryFinder to SDSAny transactions 2022-03-16 17:54:40 -07:00
Nora Trapp
a656c91fcf Store the timestamp when a story was viewed 2022-03-16 17:53:28 -07:00
Nora Trapp
52a3182f13 Render story rings on avatars 2022-03-16 17:52:43 -07:00
Nora Trapp
99350fb38c Rename HomeViewController to ChatListViewController 2022-03-16 17:51:51 -07:00
Martin Böttcher
8f9be31ba3 replaced NSLocalizedStringFromAppBundle with OWSLocalizedString 2022-03-08 10:17:25 +01:00
Martin Böttcher
c0adfbfb32 NSLocalizedString is replaced by NSLocalizedStringFromAppBundle (reading strings from the bundle of the main app) for all source files called by an app extension and the localizable files are removed for the app extension targets. 2022-03-07 13:29:06 +01:00
Martin Böttcher
ff9f451c40
enhanced logging for better/automated performance analysis (#4039)
* added log output allowing automated performance analysis of app start and basic operations
* adjusted log messages
* changed logged event title
2022-03-03 08:15:40 +01:00
Nora Trapp
b57a5bedd7 Populate INSendMessageIntentDonationMetadata 2022-03-01 10:22:28 -08:00
Martin Böttcher
82e00c6894 reduced number of notifications used for clearing search after user interaction; message sending: only user iniitiated messages will lead to cleared search 2021-12-11 12:22:40 +01:00
Martin Böttcher
6d43471488 the search will be cleared as soon as the user reacts to a message, sends a message, initiates a call or changes the disappearing messages timer 2021-12-09 11:02:28 +01:00
Matthew Chen
c494fb2a44 Don't cache contacts on contacts manager. 2021-10-22 19:09:44 -03:00
Matthew Chen
91ad7d1df7 Respond to CR. 2021-10-21 09:21:31 -03:00
Matthew Chen
b4627c1c24 Add SignalUI framework target. 2021-10-19 09:39:54 -03:00
Matthew Chen
57f8212495 Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
25f015d8bc Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
21a8175795 Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
498ffd22f2 Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
c753b06632 Revert "Add SignalUI framework target."
This reverts commit aa47dbec4d5af31b569da9db5b824f84fba63661.
2021-10-19 09:39:53 -03:00
Matthew Chen
2bbf06bca6 Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
b27457ecc6 Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
a50b328efd Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
c416609108 Add SignalUI framework target. 2021-10-19 09:39:53 -03:00