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.
This commit is contained in:
Daniel Gasienica 2018-05-07 19:12:53 -04:00
parent 60077d0b7b
commit ba4d8952c6
7 changed files with 4389 additions and 9 deletions

View file

@ -56,6 +56,7 @@ module.exports = function(grunt) {
'libtextsecure/storage/user.js',
'libtextsecure/storage/groups.js',
'libtextsecure/storage/unprocessed.js',
'libtextsecure/protobufs.js',
'libtextsecure/helpers.js',
'libtextsecure/stringview.js',
'libtextsecure/event_target.js',