Commit graph

3307 commits

Author SHA1 Message Date
Mikunj
2c12c8a1d8 Convert profile field in data message to use LokiProfile instead of signal Contact. 2019-05-29 09:26:16 +10:00
Mikunj
53cbfb1f5c Merge branch 'development' into fix-friend-request-logic 2019-05-29 09:08:22 +10:00
sachaaaaa
1b1c18b928 Patch from Beau 2019-05-27 12:09:11 +10:00
Mikunj
147861790b Always send application/json as content type in rpc. 2019-05-27 11:27:52 +10:00
Mikunj
bc6586e5ce Removed duplicated function. 2019-05-27 09:46:02 +10:00
Mikunj
f77b67d358 Updated tests.
Fix some minor logic.
2019-05-24 12:41:00 +10:00
Mikunj
986d34bbd9 linting 2019-05-24 11:07:58 +10:00
Mikunj
d4de4b13dd Fix incorrect import. 2019-05-24 11:07:13 +10:00
Mikunj
b4390a8c95 Updated pinging logic. 2019-05-24 10:57:30 +10:00
sachaaaaa
edd5915bf2 Fix use .length on object 2019-05-22 15:14:58 +10:00
sachaaaaa
5f77f751d9 Replace generator function and other various fixes 2019-05-22 15:14:58 +10:00
sachaaaaa
09a9cfbf37 Refactor long polling for better concurrent requests 2019-05-22 15:14:58 +10:00
Beaudan Campbell-Brown
e99cec9c09
Merge pull request #272 from Mikunj/signal-1.24
Signal 1.24
2019-05-22 14:56:37 +10:00
Mikunj
12cce8fe47 Auto accept friend request messages if we were already friends with the user.
Lint fixes for previous files.
2019-05-16 16:18:23 +10:00
beaudan
54bd75e9a6 Wait for a longer time after failed poll and extend default timeout 2019-05-13 06:17:13 +10:00
Mikunj
fbbf454c49 Merge branch 'development' into signal-1.24 2019-04-29 16:24:34 +10:00
Beaudan Campbell-Brown
318371a652
Merge pull request #264 from BeaudanBrown/remove-signal-references
Remove Signal references
2019-04-29 08:39:44 +10:00
Mikunj
b8ef6c2cc6 Loki changes
Added friends section in search.

This is because contacts is now used in signal for something else and we don't want to clash meanings.

Styling fixes

Add dropdown options into mainheader

Updated styling

Restore StartNewConversation to the old ui style of loki messenger.

Fix friend search display.

Fix header expand animation.

Hooked up menu actions.

Linting.

More styling changes.

Fix tests.

Added back in the loki logo below the gutter.

Fix toast positioning.

Fix context menu showing incorrectly on virtual lists.

Added tabs.

Linting
2019-04-24 13:25:20 +10:00
Mikunj
61b862b021 Merge signal 1.24.1 2019-04-18 13:27:54 +10:00
Mikunj
8808100796 Merge signal-1.24.0
# Conflicts:
#	.github/PULL_REQUEST_TEMPLATE.md
#	background.html
#	config/default.json
#	config/production.json
#	js/models/conversations.js
#	js/models/messages.js
#	js/views/conversation_view.js
#	js/views/inbox_view.js
#	js/views/settings_view.js
#	main.js
#	package.json
#	test/index.html
#	ts/components/conversation/ContactName.tsx
#	yarn.lock
2019-04-18 12:45:19 +10:00
Mikunj
3152f92e30 Merge signal 1.23.2
# Conflicts:
#	app/sql.js
#	js/conversation_controller.js
#	package.json
2019-04-18 12:31:39 +10:00
Mikunj
3a8111020e Merge v1.23.0
# Conflicts:
#	background.html
#	package.json
#	yarn.lock
2019-04-18 11:12:02 +10:00
Scott Nonnenberg
ef670bec3f Ensure that we have all conversations in redux store 2019-04-18 10:37:59 +10:00
Mikunj
7387e88c97 Add showing friends in search. 2019-04-18 10:37:23 +10:00
Mikunj
1f03e04d8c Merge commit 'c75a756b2a58bd4a79890e34673d95d9f17f3f01' into signal-1.23
# Conflicts:
#	js/views/conversation_view.js
#	package.json
#	ts/components/ConversationListItem.tsx
#	ts/components/conversation/ConversationHeader.tsx
2019-04-18 10:13:49 +10:00
Scott Nonnenberg
fca40cb548 Disable keyboard shortcut for conversation archive 2019-04-17 14:19:32 -07:00
Mikunj
12ce0140de Left pane changes.
Merge commit 'b3ac1373fa64117fe2a9ccfddf3712f1826c06d9' into signal-1.23

# Conflicts:
#	_locales/en/messages.json
#	background.html
#	js/background.js
#	js/conversation_controller.js
#	js/models/conversations.js
#	js/models/messages.js
#	js/views/conversation_list_item_view.js
#	js/views/conversation_list_view.js
#	js/views/conversation_search_view.js
#	js/views/inbox_view.js
#	libtextsecure/account_manager.js
#	package.json
#	stylesheets/_global.scss
#	stylesheets/_index.scss
#	stylesheets/_modules.scss
#	test/_test.js
#	test/index.html
#	test/models/conversations_test.js
#	test/views/conversation_search_view_test.js
#	ts/components/ConversationListItem.tsx
#	ts/components/MainHeader.tsx
#	ts/components/conversation/ConversationHeader.tsx
#	ts/components/conversation/ResetSessionNotification.tsx
2019-04-17 16:42:09 +10:00
Mikunj
48c4ed1a29 Partial Merge commit 'bf904ddd129ceba8fa363ccf6d10ecd256c65f63' into signal-1.23
# Conflicts:
#	_locales/en/messages.json
#	app/sql.js
#	js/background.js
#	js/conversation_controller.js
#	js/models/conversations.js
#	js/views/inbox_view.js
#	main.js
2019-04-17 13:47:17 +10:00
Mikunj
57195017f9 Linting 2019-04-17 12:05:30 +10:00
Mikunj
e343a04eea Merge commit '18b5b7c046436f2defab2e20407e22da180bf97b' into signal-1.22
# Conflicts:
#	app/sql.js
#	background.html
#	config/default.json
#	js/background.js
#	js/models/conversations.js
#	js/models/messages.js
#	js/modules/data.js
#	js/signal_protocol_store.js
#	js/views/conversation_search_view.js
#	libtextsecure/message_receiver.js
#	libtextsecure/sendmessage.js
#	main.js
#	package.json
#	preload.js
#	test/index.html
#	ts/components/Avatar.tsx
#	ts/components/conversation/ConversationHeader.md
#	ts/components/conversation/ConversationHeader.tsx
2019-04-17 11:59:54 +10:00
Beaudan Campbell-Brown
cab389fe2e
Merge pull request #267 from BeaudanBrown/move-filtering
Persistent last hash
2019-04-17 09:37:33 +10:00
Scott Nonnenberg
b31fbcaa17 Don't send if message body is too long 2019-04-16 14:35:16 -07:00
Beaudan Campbell-Brown
6a290f4918
Merge pull request #266 from Mikunj/fixes
UI Fixes
2019-04-16 13:52:59 +10:00
Beaudan
8ff647e3cd Return instead of await 2019-04-16 08:41:31 +10:00
Beaudan
e63e9b9053 Small optimisation 2019-04-15 15:27:14 +10:00
Beaudan
faf1b4b66b Lint 2019-04-15 15:27:14 +10:00
Beaudan
620380d2d9 Move filter messages to message api and some other cleaning 2019-04-15 15:27:14 +10:00
Beaudan
796181e00c Add database functions for storing, retrieving and cleaning last hash for snodes 2019-04-15 15:26:48 +10:00
Beaudan
960bd3fff2 Move JobQueue to be a module so that we can use it in preload 2019-04-15 15:26:48 +10:00
Mikunj
40ab727b12 Linting 2019-04-15 10:42:29 +10:00
Mikunj
b2ecb87462 Review fixes 2019-04-15 10:31:19 +10:00
Scott Nonnenberg
22f7a352f9 updateLastMessage: If we don't update last text, clear it 2019-04-12 14:06:34 -07:00
Mikunj
c7130a3bbb Added password confirmation dialog before showing seeds. 2019-04-12 14:48:15 +10:00
Beaudan
7eabae18f5 Replaced more references to signal with loki and updated CONTRIBUTING.md 2019-04-11 16:56:24 +10:00
Beaudan
377e90bafe Include long polling header for retrieve messages, extend retrieveMessages timeout to 40 seconds, reduce default tmeout to 5 seconds, remove dev/prod poll time difference 2019-04-11 15:31:00 +10:00
Beaudan Campbell-Brown
495ddcabab
Merge pull request #262 from BeaudanBrown/millisecond-times
Ttl and timestamp milliseconds
2019-04-11 13:05:14 +10:00
Beaudan
db8f8ba36f Multiple all ttl values by 1000 and stop dividing timestamp by 1000 so they are both milliseconds 2019-04-11 10:56:17 +10:00
Beaudan
f69e6ec763 Disable encryption 2019-04-11 10:42:39 +10:00
Scott Nonnenberg
62de2a229d Add logging to track synchronization in message processing 2019-04-10 12:15:00 -07:00
Derek Meer
7727dc093e Hides the "Hide menu bar" option on MacOS (#2903)
The "Hide menu bar" option is only applicable to Windows and some Linux distros,
where the menu bar is attached to the Signal window. Therefore, this commit
ensures that it doesn't show up on MacOS. It includes a setting,
isHideMenuBarSupported(), to control the option's appearance. This
commit also includes the tests to make sure isHideMenuBarSupported()
works correctly.

Fixes #2705
2019-04-08 10:25:14 -07:00
Beaudan
f076f94e71 Clearer last hash line 2019-04-08 13:39:04 +10:00
Beaudan
fa7042c043 Added wrong swarm error which gets thrown if we receive a 421 error, update the swarm lists if we get one of those errors 2019-04-08 13:37:20 +10:00
Beaudan
0f771d4db4 Rename loki_fetch to loki_rpc 2019-04-08 13:37:20 +10:00
Beaudan
b09f2970fc Move NotFoundError to errors.js 2019-04-08 13:37:20 +10:00
Beaudan
929d272fcc Fixed bugs with http being appended at wrong time and lastHash not being sent properly 2019-04-08 13:37:20 +10:00
Beaudan
531ee92dcb Updated messenger to work with slightly different storage server API and changed swarm requests to go through storage server 2019-04-08 13:37:20 +10:00
Scott Nonnenberg
629dc8737b Fix issue where 'delete messages' was not clickable second time 2019-04-05 17:18:37 -07:00
Scott Nonnenberg
c8ea2e9463 Download and install updates without the help of electron-updater 2019-04-05 17:18:37 -07:00
Scott Nonnenberg
81de5f9a76 Introduce CTRL-E shortcut for archiving a conversation 2019-04-04 17:17:19 -07:00
Scott Nonnenberg
74cb808763 New MessageController as the single place for in-memory messages 2019-04-04 17:17:19 -07:00
Mikunj
ae8b3899ad Changed registration to be a 2 step process. 2019-04-04 11:09:50 +11:00
Scott Nonnenberg
274949b247 Enable long message send as an attachment 2019-03-29 11:31:15 -07:00
Scott Nonnenberg
4d8fbe95ff Retry send: Always remove all errors and recalculate recipients 2019-03-29 11:31:15 -07:00
Scott Nonnenberg
0c69d725c3 Ensure that we have all conversations in redux store 2019-03-28 17:23:09 -07:00
Beaudan Campbell-Brown
338f4e3682
Merge pull request #255 from BeaudanBrown/better-logs
Improve sending/retrieving/swarm logs
2019-03-25 17:30:41 +11:00
Scott Nonnenberg
b232d6289a Update react-contextmenu to avoid event handler issues un unload 2019-03-21 12:22:24 -07:00
Scott Nonnenberg
3b140d9b51 Update react-contextmenu to avoid event handler issues un unload 2019-03-20 13:43:24 -07:00
Scott Nonnenberg
7cfd3870d5 Escape XML delimiters for notifications on linux
Thanks to @whitequark for pointing out an inconsistency in the way that
some Linux desktop environments were displaying markup in notifications.
2019-03-18 16:30:53 -07:00
Scott Nonnenberg
8c4d90df07 Send long text as an attachment instead of inline
Remove Android length warning

Handle incoming long message attachments

Show long download pending status in message bubble

Fix the width of the smallest spinner

Remove Android length warning from HTML templates
2019-03-14 17:30:46 -07:00
Scott Nonnenberg
0e5f405b53 Remove unnecessary 'tag' from Notification construction 2019-03-14 12:32:51 -07:00
Beaudan Campbell-Brown
ce2d5d169f
Merge pull request #253 from BeaudanBrown/extend-right-click
Extend right click functionality
2019-03-14 09:55:51 +11:00
Scott Nonnenberg
32fa5cccde Send sync sent messages properly in 1-member group 2019-03-13 10:46:00 -07:00
Scott Nonnenberg
c76d537482 Note to Self: On just expire timer update, set TIMER_UPDATE flag 2019-03-13 09:11:39 -07:00
Beaudan
0b6849c96a Review comment plus added a todo 2019-03-13 16:41:13 +11:00
Beaudan
6656a89092 Cleaned up a lot of the logs, stop them from printing more than once etc 2019-03-13 12:05:47 +11:00
Scott Nonnenberg
b3ac1373fa Move left pane entirely to React 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
bf904ddd12 On attachment save include date, include album index 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
768007a269 Message Detail: Ensure that quotes are not clickable 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
6ffbc0ac06 Archive Conversation 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
782516186f Move expiring message cleanup after ConversationController.load() 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
d72f89d776 Render only visible conversations in left pane 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
e68367fe0d Remove reference to nonexistent view 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
009c58749b Don't continue to log if socket is returning unknown status 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
812f895e12 Bring lastMessage and lastMessageStatus back to conversation 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
dcd16775c3 Note to Self: set expirationStartTimestamp before sending sync 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
eb7ad48951 Only put nbsp before last token in msg body if token is <12 chars 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
ba501a6df6 Fix ASM warnings in MP3 library 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
fbda313d09 Add job details to attachment download log warning 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
ae161c6cf6 Update to Electron 4.x 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
667b2e63f1 Ensure image lightbox is aware of its underlying message changes 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
ae2db9f09a Improve handling for URLs composed of mixed character sets 2019-03-12 17:44:14 -07:00
Beaudan
dbdde07062 Allow conversation symbol to generate while swarm nodes are being retrieved 2019-03-13 10:35:05 +11:00
Beaudan
9717267b00 Review 2019-03-13 10:32:46 +11:00
Beaudan
14367620d9 lint 2019-03-12 11:36:32 +11:00
Beaudan
d0d57ea8c7 Add more functionality to the conversation right click menu, add right click for messages, change some of the ways toasts/confirmation dialogs are created, auto focus text input for nickname, clean up some stuff 2019-03-12 11:10:50 +11:00
Beaudan
5c29c6cb1d Search view now works with deleting contacts as well 2019-03-07 17:10:33 +11:00
Beaudan
df93c97b48 Added ability to delete contacts and destroy all sessions with them. Added right click menu to contacts/conversations in list which can block, delete messages and delete contact 2019-03-07 17:10:33 +11:00
sachaaaaa
dca2462f6c
Merge pull request #248 from sachaaaaa/friend_request_expiry
Add requestExpired state to Friend Request state machine
2019-03-07 14:48:51 +11:00
sachaaaaa
77fb5b4a71 Missing closing parenthesis 2019-03-07 11:33:13 +11:00
Mikunj Varsani
353302ca16
Use Array.includes instead of Array.indexOf
Co-Authored-By: sachaaaaa <40749766+sachaaaaa@users.noreply.github.com>
2019-03-06 14:04:00 +11:00
sachaaaaa
e953ae7be2 use correct function respondToAllFriendRequests 2019-03-06 12:48:30 +11:00
sachaaaaa
62889bbdd4 Add requestExpired state to Friend Request state machine 2019-03-05 17:42:54 +11:00
sachaaaaa
926c9ce3ca Fix multiple friend request timers instantiated 2019-03-05 17:32:05 +11:00
Beaudan Campbell-Brown
8e3542b511
Merge pull request #213 from sachaaaaa/channel_encryption
Hook up channel encryption
2019-03-04 12:19:34 +11:00
sachaaaaa
4714cafa6f
Merge pull request #238 from sachaaaaa/commit_hash_about
Show commit hash in About window for beta builds
2019-03-04 10:52:26 +11:00
sachaaaaa
37f0fced29 Show commit hash in About window for beta builds 2019-03-01 17:10:20 +11:00
Beaudan
f906cbfd50 Added enter to log in 2019-03-01 16:20:28 +11:00
sachaaaaa
28b548525e
Merge pull request #233 from BeaudanBrown/handle-local-server-fail
Retry p2p server if failed to start
2019-03-01 15:12:56 +11:00
Beaudan
5030ad4021 Made the slider label populate as well, plus removed redundant window function 2019-03-01 12:52:18 +11:00
Beaudan
8c20a31dd4 Review suggestions 2019-03-01 12:50:45 +11:00
sachaaaaa
53b0574a1f Merge branch 'development' into channel_encryption
* development:
  Manually set the dns servers for windows
  Refactor local_loki_server
  Refactor rpc calls to its own function.

# Conflicts:
#	js/modules/loki_message_api.js
2019-03-01 10:57:41 +11:00
sachaaaaa
55e0ff1a88
Merge pull request #208 from Mikunj/message-api-refactor
Refactor rpc call to its own function.
2019-03-01 10:08:23 +11:00
sachaaaaa
ad5efc9ba3 lint 2019-02-27 14:07:02 +11:00
sachaaaaa
aa722590fa use channel encryption with storage server 2019-02-27 14:04:15 +11:00
Beaudan
72d00e0922 Manually set the dns servers for windows 2019-02-27 13:44:20 +11:00
Mikunj
4a037387e9 Refactor rpc calls to its own function. 2019-02-22 13:47:40 +11:00
Mikunj
06be1da40d Added p2p message styling 2019-02-22 10:22:03 +11:00
Beaudan
c0a6ba25bc Update p2p messages to follow the same endpoint format as storage server. Clean up message_api a lil bit and updated tests 2019-02-21 14:37:37 +11:00
Beaudan
08dee14802 Review comment 2019-02-21 13:50:59 +11:00
Scott Nonnenberg
3917ab940e web_api: Fix caching of https.agent objects between requests 2019-02-20 16:51:30 -08:00
Scott Nonnenberg
41ea9ee15b Ensure that we show error'd recipients in message details screen 2019-02-20 16:51:30 -08:00
Scott Nonnenberg
ad53423e0a Queue quote reference handling per convo in handleDataMessage 2019-02-20 16:51:30 -08:00
Scott Nonnenberg
5165eb3bd4 On database error: show popup, allow user to delete and relaunch 2019-02-20 16:51:30 -08:00
Scott Nonnenberg
3fb6ab295f Debug log optimizations and improvements 2019-02-20 16:51:30 -08:00
Scott Nonnenberg
9afea3ae2b View All Media: Listen for updates to conversation, re-render 2019-02-20 16:51:30 -08:00
Scott Nonnenberg
d4eacda649 Disable import/export outside of test mode; not currently used 2019-02-20 16:51:30 -08:00
Scott Nonnenberg
77ae717b9b Clean up shutdown handling - stop processing incoming messages 2019-02-20 16:51:30 -08:00
Scott Nonnenberg
af40ceda6c Note to Self timer fixes for bugs reported by beta users 2019-02-20 16:40:35 -08:00
Beaudan
0516e69ff7 Fix tests 2019-02-20 16:08:41 +11:00
Beaudan
dc67aaf9cc Roll back change to ping more often again, ping our offline contacts every 2 mins to check if they have come back online 2019-02-20 16:08:41 +11:00
Beaudan
29bca71d5a Try ping contacts that send us storage server messages in the last 2 mins 2019-02-20 16:08:41 +11:00
Beaudan
d6a210efaa Reworked the update p2p details to be more robust and stopped some redundant pings from happening 2019-02-20 16:08:41 +11:00
Beaudan
25ded46e2c Fixed some bugs removing nodes after the first failure instead of waiting for the failure count and also reduced the number of errors logged and made some warnings 2019-02-20 16:08:41 +11:00
Beaudan
b00a0cb699 Rename isOnline to isPing for clarity, and reduce the ttl for online broadcast messages to 1 min 2019-02-20 16:08:41 +11:00
sachaaaaa
1c4d9b40bb
Merge pull request #199 from sachaaaaa/new_message_api
Use new message json rpc API
2019-02-20 15:34:05 +11:00
sachaaaaa
d3f23db049 serialise objects to json before node-fetch 2019-02-18 13:17:58 +11:00
sachaaaaa
8eac72b60c Fix typo 2019-02-18 13:04:35 +11:00
sachaaaaa
ed1d06d9ce use 'params' as per json_rpc 2019-02-18 11:17:32 +11:00
Beaudan
4bb10044ea Clear timers after friend request complete and don't do timer related things if we are already friends 2019-02-18 11:05:10 +11:00
sachaaaaa
159dc711e1 use new message json rpc API 2019-02-18 10:35:39 +11:00
Beaudan
2fd746821a Added function for getting your loki IP and bind the local server 2019-02-14 13:09:04 +11:00
Beaudan
6426a5eb9b Added ability to look up our .loki address and now send that with our LokiAddress messages 2019-02-14 13:09:04 +11:00
Scott Nonnenberg
1b9959aca3 Ensure outgoing attachment size always matches resized image 2019-02-13 16:04:58 -08:00
Scott Nonnenberg
28f96fe893 Ensure that we capture sender even if thrown error is falsey 2019-02-13 16:04:58 -08:00
Scott Nonnenberg
291e8d80cb Fix asm.js errors in emscripten-generated functions 2019-02-13 16:04:58 -08:00
Scott Nonnenberg
5b54c9554e Remove groups table, conversation is single source of truth 2019-02-13 16:04:58 -08:00
Scott Nonnenberg
041fe4be05 Remove JSON column and Backbone Model for unprocessed 2019-02-13 16:04:58 -08:00
Scott Nonnenberg
9c540ab977 Add cache support to Signal Protocol Store 2019-02-13 16:04:58 -08:00
Scott Nonnenberg
1d2c3ae23c Download attachments in separate queue from message processing 2019-02-12 16:34:21 -08:00
Scott Nonnenberg
a43a78731a Note to Self 2019-02-12 16:08:51 -08:00
Scott Nonnenberg
858c7e629f Fine-tune linkification technique for link previews 2019-02-11 18:32:05 -08:00
Scott Nonnenberg
462fa712bc Show members: Pull conversation from group table 2019-02-11 18:32:05 -08:00
sachaaaaa
68fe552156 Merge commit '5c8558e293989094693f918a63b672301f1aeb55' into merge_1_21_1
* commit '5c8558e293989094693f918a63b672301f1aeb55':
  v1.21.1
  v1.21.1-beta.1
  Fix: Navigation to message via quote click didn't always work
  mainWindow.close - be ready for null mainWindow
  Ensure that Curve.async points to worker after startWorker call
  Protect against unhandled promises when calling checkForUpdates
  Reenable send when link preview is missing an image

# Conflicts:
#	package.json
2019-02-12 13:17:35 +11:00
Scott Nonnenberg
12739ac82d Ensure we don't add empty attachments to quote 2019-02-11 17:37:33 -08:00
Beaudan
2d9e6a7ac8 Review comments 2019-02-12 10:34:11 +11:00
Beaudan
2311bd1328 Fix bug with swarm node reference, now we should only refresh swarm nodes when they fail 2019-02-11 16:35:22 +11:00
Beaudan
5d823de6f9 Renamed lokiSnodeAPI to start with lower case for consistency, refactor snode API to use conversation controller 2019-02-11 16:35:22 +11:00
Mikunj
d30e950bf9 Changed hashing algorithm. 2019-02-11 15:00:30 +11:00
Mikunj
a989a1a818 Save previews locally. 2019-02-11 13:20:40 +11:00
Scott Nonnenberg
1a7df91dbc Fix: Navigation to message via quote click didn't always work 2019-02-08 11:54:22 -08:00
Mikunj
a1e4b740f2 Fixed up settings view.
Fix review issues.
2019-02-08 16:03:15 +11:00
Mikunj
7564e270f8 Lint and code cleanup 2019-02-08 15:08:35 +11:00
Mikunj
725a41a8d7 Added link preview setting. 2019-02-08 14:58:31 +11:00
Mikunj
27c6062351 Fix incoming messages not showing previews.
Linting.
2019-02-08 14:17:50 +11:00
Mikunj
ae695fe32f Remove sending attachments. 2019-02-08 13:36:22 +11:00
Mikunj
8f8e25bb3e Added local link preview 2019-02-08 12:22:00 +11:00
sachaaaaa
0417f0ffad
Merge pull request #182 from sachaaaaa/disable_dragndro
Disable drag n drop temporarily
2019-02-07 11:26:57 +11:00
sachaaaaa
f900a08eda
Merge pull request #177 from sachaaaaa/merge_1_21_0
Merge Signal 1.21.0
2019-02-07 10:08:50 +11:00
sachaaaaa
72b7f82522 Disable pasting files 2019-02-07 10:06:31 +11:00
sachaaaaa
46533fae0d disable drag n drop temporarily 2019-02-06 17:09:26 +11:00
sachaaaaa
4332a18fcb ran yarn lint 2019-02-06 16:01:36 +11:00
sachaaaaa
a0f67c22da Merge branch 'textsecure/master' into merge_1_21_0
* textsecure/master: (26 commits)
  v1.21.0
  v1.21.0-beta.4
  Dark Theme: Preserve blue background on app loading screen
  Localization updates
  Fix width of audio player when window is very narrow
  A number of small fixes for Link Previews
  Get rid of the white flash when the app starts up (#3083)
  v1.21.0-beta.3
  Lint fixes
  Introduce new language: NB
  Fail over to all numbers in retry if errors don't have numbers
  Use the proper method for pulling attachments off disk for retry
  Fix rendering bug with verified state in updateVerified()
  Update electron-builder and electron-updater
  Ensure that dialog pops up when permissions denied for voice note
  Lint fixes
  Large update to localization strings
  Link Previews
  Ensure that blocked messages are dropped even after sealed sender
  Don't linkify quoted message contents
  ...

# Conflicts:
#	.github/PULL_REQUEST_TEMPLATE.md
#	_locales/cs/messages.json
#	background.html
#	config/default.json
#	index.html
#	js/models/conversations.js
#	js/modules/web_api.js
#	js/settings_start.js
#	js/views/conversation_view.js
#	js/views/settings_view.js
#	package.json
#	protos/SignalService.proto
#	stylesheets/_index.scss
#	stylesheets/_settings.scss
2019-02-06 13:53:20 +11:00
Beaudan
cde7bbf3c3 Removed forceP2p as argument for the pingContact event and enforced it on the other side 2019-02-06 11:49:46 +11:00
Beaudan
69ebf017ff Reworked loki_p2p_api to not use the window object, which means it needs to be instantiated after the storage is ready so that your pubkey can be passed in to the constructor. This makes it more modular and allows for easier testing 2019-02-06 10:26:25 +11:00
Scott Nonnenberg
0d7480bd92 A number of small fixes for Link Previews 2019-02-05 13:55:55 -08:00
sachaaaaa
432c336048
Merge pull request #171 from Mikunj/online-indicator-fix
Added online indicator to conversation header.
2019-02-05 16:35:42 +11:00
Mikunj
ddfc99a461 Added online indicator to conversation header. 2019-02-05 14:22:55 +11:00
sachaaaaa
1519406c65
Merge pull request #169 from Mikunj/queue-message-send-update
Minor code update
2019-02-05 12:13:31 +11:00
Mikunj
e3c0f2147a Fixed variable name. 2019-02-05 11:12:55 +11:00
Beaudan
0c104e5a53 Small fix for the disconnected banner coming up when it shouldn't, just default to thinking we are connected and mock the onEmpty event. Will only get set to not connected if requests fail 2019-02-05 10:48:51 +11:00
Mikunj
926362f88a Rename queue_manager to job_queue 2019-02-05 10:45:46 +11:00
Mikunj
1d40bc3af9 Changed queueMessageSend to use JobQueue. 2019-02-05 10:17:11 +11:00
Beaudan
cd79d5aca5 Fixed and simplified some logic for the handling of loki address messages 2019-02-04 15:37:55 +11:00
Beaudan
b2e95932f1 Lint 2019-02-04 11:18:59 +11:00
Beaudan
fac8e72861 Added queue manager to properly fix the race condition bug and reset the changes I made in other commit 2019-02-04 11:14:31 +11:00
Beaudan
b2f456031f Forgot to lint 2019-02-01 15:01:11 +11:00
Beaudan
25383458b1 Fixed bug with our swarm nodes being removed from memory after a successful request because of returning a reference 2019-02-01 15:01:11 +11:00
Beaudan
cc3f98b20a Move the incoming hash filtering logic into sql.js to prevent data races 2019-02-01 15:01:11 +11:00
Beaudan Campbell-Brown
5f49c5aafd
Merge pull request #165 from Mikunj/online-indicator
Online indicator
2019-02-01 15:00:08 +11:00
Mikunj
174f8747b6 Review fixes.
Revert promises back to old style.
2019-02-01 14:47:09 +11:00
sachaaaaa
576617e18e call class method using "this" in loki_snode_api 2019-02-01 11:39:08 +11:00
Mikunj
4518e95619 Linting 2019-02-01 11:35:23 +11:00
Mikunj
8526c6dd92 Fix up possible database write issue. 2019-02-01 11:30:44 +11:00
Mikunj
f4e9bc655a Hooked up LokiP2pAPI with online stuff. 2019-02-01 11:27:31 +11:00
Mikunj
9b382de6da Added online indicator.
Disable selection in contacts.
2019-02-01 10:06:39 +11:00
Beaudan
1ce63add68 Simplified the addContactP2pDetails logic cause it was silly 2019-01-31 16:33:33 +11:00
Beaudan
a40a3d164f Lots of logic for establishing a p2p connection, managing when the other user is online vs offline etc. Will always try to use P2P messaging when it can and fall back to storage server otherwise 2019-01-31 16:10:57 +11:00
Mikunj
efe95a70bc Fix review issues. 2019-01-31 11:58:43 +11:00
Mikunj
3c07d99a89 Fix variable names.
Fix module export to be more consistent.
2019-01-31 11:30:26 +11:00
Mikunj
ddbbb1a6f0 Refactor fetch. 2019-01-31 11:05:25 +11:00