Commit Graph

88 Commits

Author SHA1 Message Date
Jordan Rose
b0de59f2e2 Remove required from every init that is not dynamically dispatched
This included:
- Removing unavailable inits wholesale if no longer `required`
- Marking a few classes `final` so they could continue using
  `Self(...)` rather than `OWSWhatever(...)`
2024-04-01 15:27:20 -07:00
Elaine
f7f9d1ef82
Update existing bar button items using the new convenience methods 2024-03-25 12:20:19 -06:00
Ehren Kret
d4e17730f3 remove import SignalMessaging statements 2024-03-12 03:35:34 -05:00
Elaine
fcec78006a
Add contact details sheet to disambiguate accounts with similar profiles 2024-01-31 09:41:53 -07:00
Max Radermacher
251d1d6425
[ServiceId] Update mentions 2023-08-21 17:37:37 -05:00
Sasha Weiss
06e1a416cc
Remove the "Any...Finder" pattern from a bunch of types 2023-08-21 10:27:07 -07:00
Harry
4713edf61c
Spoiler animations part 7: odds and ends 2023-07-17 09:17:27 -07:00
Harry
c9bd43c0ab
Spoiler animations part 6: story captions and text stories 2023-07-17 08:33:29 -07:00
Harry
86aa9b5521
Spoiler animations part 4: remaining conversationview instances 2023-07-13 08:42:10 -07:00
Harry
a0052e7810
Spoiler animations, part 1 2023-07-12 15:52:00 -07:00
Harry
f14b18d3f0
Fix underline of links in messages 2023-07-10 15:51:21 -07:00
Harry
ef1dfc1316
Add messageBody as a type of DisplayableText 2023-07-07 13:41:24 -07:00
Harry
ff89ef8e96
Add spoiler animator 2023-07-06 09:14:11 -07:00
Harry
10985644b3
Add text formatting send support. 2023-06-23 10:26:46 -07:00
Igor Solomennikov
52f0015dfe
New set of icons. 2023-06-22 17:38:01 -07:00
Igor Solomennikov
1f450f3b51
Convert AttachmentSharing to Swift. 2023-06-07 11:41:23 -07:00
Igor Solomennikov
f8a79687a7
Remove unnecessary @objc from the main app target. 2023-05-16 16:33:45 -07:00
Harry
e7f2c3b059
Show text formatting styles in media gallery 2023-05-05 09:06:03 -07:00
Harry
4d3eca887c
Text formatting support in Message detail, long text, and quoted reply views 2023-05-04 09:16:18 -07:00
Harry
b3700d07ce
Refactor mention/style/search result attribute application 2023-05-01 13:57:07 -07:00
Evan Hahn
14237a873f
NSLocalizedString -> OWSLocalizedString 2023-04-25 13:28:46 -05:00
Igor Solomennikov
6dd3d9a6f2
Convert all convenience methods in UIFont+OWS to Swift. 2023-04-18 17:14:51 -07:00
Max Radermacher
6a1ec67662 Remove readThrows method
It’s not necessary -- the same functionality can be implemented with the
normal `read` method.
2022-11-29 14:46:40 -08:00
Evan Hahn
370ff654e7
Change license to AGPL
Change license to AGPL

This commit:

- Updates the `LICENSE` file

- Start every file with something like:

      // Copyright YEAR_FIRST_PUBLISHED Signal Messenger, LLC
      // SPDX-License-Identifier: AGPL-3.0-only

---

First, I removed existing license headers with this Ruby 3.1.2 script:

    require 'set'

    EXTENSIONS_TO_CHECK = Set['.h', '.hpp', '.cpp', '.m', '.mm', '.pch', '.swift']

    same = 0
    different = 0

    all_files = `git ls-files`.lines.map { |line| line.strip }
    all_files.each do |relative_path|
      if relative_path == 'Pods'
        next
      end

      unless EXTENSIONS_TO_CHECK.include? File.extname(relative_path)
        next
      end

      path = File.expand_path(relative_path)

      contents = File.read(path)
      new_contents = contents.sub(/\/\/\n\/\/  Copyright .*\n\/\/\n\n/, '')

      if contents == new_contents
        same += 1
      else
        different += 1
      end

      File.write(path, new_contents)
    end

    puts "updated #{different} file(s), left #{same} untouched"

I'm sure this script could be improved, but it worked well enough.

Then, I created `Scripts/lint/lint-license-headers` and ran it to auto-
fix a lot of files. This changed the mode of some files, but I think
that's actually desirable. For example,
`SignalServiceKit/src/Util/AppContext.m` previously had a mode of
`0755/-rwxr-xr-x`, and it's now `0644/-rw-r--r--`.

Then I fixed some stragglers and updated the precommit script.

See [a similar change in the Desktop app][0].

[0]: 8bfaf598af
2022-10-13 08:25:37 -05:00
Harry Sanabria
d64a850be0 Fix native context menu icon sizes 2022-10-07 07:49:41 -07:00
Jordan Rose
1689aec8c6 Don't linkify a truncated URL until the user expands the message body
This is implemented by seeing if a data-detected item is at the very
end of a truncated string, in which case it isn't trusted to be
complete. This applies not only to URLs, but to other data-detected
items as well like emails and addresses. It's also specific to
truncated text since a user could very well type an ellipsis in their
actual message, and *that* shouldn't prevent linkification.

It's possible that an item at the very end of a truncated string *is*
complete (i.e. the truncation point was just *after* the URL), but we
can't be sure without comparing to the full text or storing additional
information, and that's trickier for a number of reasons. The user can
still expand the message and get the linkification in this case.
2022-05-06 10:56:45 -07:00
Matthew Chen
9271f83624 Remove databaseChangesWillUpdate. 2021-09-08 21:41:13 -03:00
Matthew Chen
492cd68a75 Fix message forwarding issues. 2021-08-25 11:04:13 -03:00
Matthew Chen
2a34d9131a Fix message forwarding issues. 2021-08-25 11:04:13 -03:00
Matthew Chen
55e8ce933d Respond to CR, ensure more views respond to theme changes. 2021-08-24 10:43:41 -03:00
Matthew Chen
23b857ae4a Use InteractiveSheetViewController. 2021-08-19 17:07:15 -03:00
Matthew Chen
a7060a2d69 Respond to CR. 2021-08-19 16:58:04 -03:00
Matthew Chen
c46a28bae5 Show success toast. 2021-08-19 16:58:03 -03:00
Matthew Chen
06b33325e8 Modify forward flow to support multi-forward. 2021-08-19 16:57:30 -03:00
Matthew Chen
623a891783 Modify forward flow to support multi-forward. 2021-08-19 16:57:28 -03:00
Matthew Chen
12dc3775d6 Modify forward flow multi-forward. 2021-08-19 16:57:01 -03:00
Matthew Chen
f2b76e60f9 Refine names. 2021-07-02 22:08:53 -03:00
Matthew Chen
f06b72bc2a Remove uiRead(). 2021-07-02 22:04:58 -03:00
Matthew Chen
75de56236b Remove uiRead(). 2021-07-02 22:04:58 -03:00
Matthew Chen
03acf2ffdd Remove uiRead(). 2021-07-02 22:04:58 -03:00
Matthew Chen
786e7cef3d Fix build warnings. 2021-06-07 11:11:28 -04:00
Matthew Chen
010b135ab0 Add CVBodyTextLabel. 2021-06-02 20:42:55 -04:00
Matthew Chen
936b64b959 Add feature flag for data detection. 2021-05-11 10:12:58 -03:00
Matthew Chen
1da40bca75 Rework data detection in body text component. 2021-04-23 15:58:14 -03:00
Matthew Chen
151e1158a9 Rename CVItemViewModel, CVItemViewModelImpl. 2020-12-11 16:49:14 -03:00
Matthew Chen
111338b59d Rewrite conversation view. 2020-12-10 12:44:13 -03:00
Matthew Chen
66510bc18f DRY singleton accessors. 2020-09-17 21:13:14 -03:00
Nora Trapp
a3bb9e872e Fix mention theme changes 2020-08-04 14:09:06 -07:00
Nora Trapp
a39750113f Full suppoort for ention send + receive 2020-08-04 14:08:30 -07:00
Nora Trapp
4696a4d993 Mention sending 2020-08-04 14:08:30 -07:00