Commit Graph

4188 Commits (80d54843252ce0d5fc0d2480777410d09a47f051)
 

Author SHA1 Message Date
Daniel Gasienica d349dd903d Add `AttachmentSection` to style guide 7 years ago
Daniel Gasienica 121bb0ecef Style guide: Fix empty state 7 years ago
Daniel Gasienica f19e6ea93d Wrap JSX siblings in container 7 years ago
Daniel Gasienica a8cd0b782e Rename `DocumentListItem::isLast` to `shouldShowSeparator` 7 years ago
Daniel Gasienica 05f67dc04a Hide separator for last document list entry 7 years ago
Daniel Gasienica fd883b2896 Fix `LightboxGallery` style guide entry 7 years ago
Daniel Gasienica bfe7eb7d5e Consolidate styles 7 years ago
Daniel Gasienica 90329a2764 Display icon for unsupported file formats
Still allows users to download media.
7 years ago
Daniel Gasienica 623bdd9284 Port `colorSVG` from Sass to TypeScript (React) 7 years ago
Daniel Gasienica 16bc1d34c6 Message schema 6: Change classification of media and documents
For an easier implementation, we change our original definition of
`initializeAttachmentMetadata`. This means we have to re-run it marked as
version 6 and mark schema version 5 as deprecated as its definition has changed.
7 years ago
Daniel Gasienica f4a5bc9907 Add new MIME types 7 years ago
Daniel Gasienica 101041f106 Derive `Message.CURRENT_SCHEMA_VERSION` 7 years ago
Daniel Gasienica 63bd9dcc61 Add tests for `Attachment.isVisualMedia` 7 years ago
Daniel Gasienica 53918d68de Add `Attachment.isFile` definition 7 years ago
Daniel Gasienica 20246c4d07 Classify all images and videos as visual media
Even if we can’t play it back. Handle that in the lightbox.

Also: Exclude voice messages.
7 years ago
Scott Nonnenberg 787d023557
Feature: Receive contact (#2349)
Feature: Receive contact
7 years ago
Scott Nonnenberg 375dc62c4a scss mixin: remove-button-styles -> button-reset 7 years ago
Scott Nonnenberg 26be658892 Remove 'Contact' from 'Contact.*' properties, clean->parse 7 years ago
Scott Nonnenberg cda326ca45 Use protobuf enum values to eliminate magic numbers 7 years ago
Scott Nonnenberg adbe989949 validateContact: Return error instead of logging 7 years ago
Scott Nonnenberg bb01218e83 MessageView: Get rid of 'let' for hasSignalAccount 7 years ago
Scott Nonnenberg d0efccd121 A couple renames in contact.js 7 years ago
Scott Nonnenberg 0282635142 Remove Object.assign still hanging around in typescript 7 years ago
Scott Nonnenberg 1918a88722 Drop ifTruthy suffix 7 years ago
Scott Nonnenberg b4bf9733ad Move CSS to remove button styling into mixins.scss 7 years ago
Scott Nonnenberg 420f81ebcd Move contact migrate code from message.js to contact.js 7 years ago
Scott Nonnenberg 47adbe4358 Minify new svg files 7 years ago
Scott Nonnenberg 1fd487be3f Refactor to remove duplicated code, lint/prettier fixes 7 years ago
Scott Nonnenberg f628df1035 Eliminate arrows in the standalone Lightbox component examples 7 years ago
Scott Nonnenberg 8beeef4d10 Show contact name when you reply to message with a contact 7 years ago
Scott Nonnenberg cdfe4d76b1 Update contacts for android dark theme 7 years ago
Scott Nonnenberg 202f5d5b7a Update contact bubbles for ios theme 7 years ago
Scott Nonnenberg 9d1847a7e5 Pull all setup in preload.js into signal.js. goal: webpackable 7 years ago
Scott Nonnenberg 30cb673405 Fix style guide for LightboxGallery component 7 years ago
Scott Nonnenberg 37821e5a1b Wire up all contact behaviors, refactor Contact type/selector 7 years ago
Scott Nonnenberg 41be7f126b Visuals for embedded contacts as well as contact detail screen 7 years ago
Scott Nonnenberg 3ea3e4e256 Contact sharing: protos and data pipeline
As of this commit: 82b76ccf37
7 years ago
Scott Nonnenberg b6a585a646
MessageView: Add id from database to DOM for outgoing messages (#2350) 7 years ago
Scott Nonnenberg b41cf47df6
Update translations for week of 5/7 (#2352) 7 years ago
Daniel Gasienica c7a502e2e1 Standalone Protocol Buffers (#2347)
This change introduces a standalone module for our protocol buffers as CommonJS
module incl. TypeScript type definitions.

**Rationale:** In order to exclude voice messages from the media gallery,
I needed to get a reference of `AttachmentPointer.Flags.VOICE_MESSAGE`.
Currently, the only way is to use `textsecure.protobuf` which is only accessible
as a global.

* [x] Add `Attachment.isVoiceMessage` as a way to test standalone
      Protocol Buffers.
* [x] Add latest version of `protobufjs`. Leave existing version in place to
      keep this change less disruptive and since it’s been stable. Hopefully we
      can move over to standalone protobufs over time to improve modularity and
      maybe even startup performance.
* [x] Add `yarn build-protobuf` command to compile `SignalService.proto` into
      standalone CommonJS module and accompanying TypeScript definitions.
      ~~Included compiled output for ease of use for other developers.
      Can revisit if changes become more frequent.~~
      Now built as part of `yarn grunt`.
* [x] Update style guide references and make sure they work!
* [x] ⚠️ Change type definition for `Attachment::file` to include `null` as
      that’s apparently a valid value for legacy Android voice messages.
7 years ago
Daniel Gasienica ba4d8952c6 Revert "Use protocol buffer module for `libtextsecure`"
This does not work with `ArrayBuffer` out of the box and will need to be
investigated and tested more before switching.

Some APIs also seemed to have changed:
- Before (OOP): `new textsecure.protobuf.WebSocketMessage(…).encode();`
- After (functional):
  ```
  textsecure.protobuf.WebSocketMessage.encode(
    new textsecure.protobuf.WebSocketMessage(…)
  );
  ```

This reverts commit d758119d9de4f99742ea941e86180b1d600c2f22.
7 years ago
Daniel Gasienica 60077d0b7b Use protocol buffer module for `libtextsecure` 7 years ago
Daniel Gasienica daa4a3d63f Compile all protocol buffers 7 years ago
Daniel Gasienica c8e1c29b16 Improve naming 7 years ago
Daniel Gasienica 4e39882afc Compile protocol buffers first 7 years ago
Daniel Gasienica 2810f26461 Remove unused `WhisperTextProtocol.proto` 7 years ago
Daniel Gasienica 086c64deb8 Add `yarn clean-protobuf` command 7 years ago
Daniel Gasienica 55f85465c6 Remove generated protobuf as part of `yarn clean-transpile` 7 years ago
Daniel Gasienica cb09da0f63 Run all build steps in CI 7 years ago
Daniel Gasienica 15759f0db5 Normalize package naming 7 years ago