Commit Graph

62 Commits

Author SHA1 Message Date
Danila Fedorin 4505b4ba27 Stop making dozens of /profile calls to get usernames 2019-10-09 12:42:33 -07:00
Danila Fedorin 4ef8471585 Implement part of a push-based notification system 2019-10-04 21:26:11 -07:00
Danila Fedorin 105f7e6012 Add missing changes from previous commit 2019-09-12 16:00:23 -07:00
Danila Fedorin 5c02ae8a58 Fully switch away from keeping sync 2019-09-11 00:52:42 -07:00
Danila Fedorin 29e81a88ac Start switching from sync to room data 2019-09-10 23:24:47 -07:00
Danila Fedorin 595e28853e Split Sync file into sub-modules 2019-09-10 20:19:26 -07:00
Danila Fedorin 266c421223 Fix flickering (thanks Matrix spec) 2019-09-08 14:22:08 -07:00
Danila Fedorin 8623eb8dfd Refactor new user command 2019-09-07 16:38:09 -07:00
Danila Fedorin 5e3aa40a35 Use Elm's lazy to optimize for many-message performance 2019-09-06 23:55:36 -07:00
Danila Fedorin f395259137 Improve performance by computing room names at sync, rather than on view. 2019-09-02 00:46:59 -07:00
Danila Fedorin 3a31f98f3b Wire up the search bar. 2019-05-19 13:42:22 -07:00
Danila Fedorin c7149aa5c9 Allow more images. 2019-03-15 18:56:17 -07:00
Danila Fedorin 011630a185 Remove messages once their ID is received. 2019-03-15 18:45:55 -07:00
Danila Fedorin 1b0ad433b9 Add id field for sending messages.
The idea is to use this field to dismiss messages only when
a sync response with their id arrives.
2019-03-15 18:01:07 -07:00
Danila Fedorin 7241d112b0 Add notification counts to page title. 2019-03-15 17:44:54 -07:00
Danila Fedorin fe065130fe Scroll after "sending" messages. 2019-02-25 20:16:06 -08:00
Danila Fedorin 267d68d673 fixup! Display "still sending" messages. 2019-02-25 20:04:15 -08:00
Danila Fedorin 5d519242be Display "still sending" messages. 2019-02-25 19:54:54 -08:00
Danila Fedorin ce1580926c Refactor to allow "messages".
This will allow us to group non-event things as messages, which will
then allow us to display messages that are still being sent.
2019-02-25 16:44:47 -08:00
Danila Fedorin 1703c091a7 Send file names as captions when sending files and images. 2019-02-21 23:03:01 -08:00
Danila Fedorin 28c829c2c8 Attempt to fix image "double sending" issue. 2019-01-24 21:14:02 -08:00
Danila Fedorin b0e796ee16 Add a button to reconnect. 2018-12-27 00:12:48 -08:00
Danila Fedorin 4de9063e67 Disable DDOS-tier retry attempts on failed network communication. 2018-12-26 23:20:51 -08:00
Danila Fedorin 70d6eba427 Add basic notification priority filtering. 2018-12-23 21:17:03 -08:00
Danila Fedorin 2d133167ed Add error messages to some scenarios. 2018-12-23 00:39:20 -08:00
Danila Fedorin c08ef14832 Add display to errors. 2018-12-23 00:23:48 -08:00
Danila Fedorin 50701e1885 Add retrieving account data, namely the notification setting. 2018-12-22 21:42:51 -08:00
Danila Fedorin eb9e82483b Add markdown sending. 2018-12-20 22:01:09 -08:00
Danila Fedorin c483e6ac6c Add mime type info to file and image uploads. 2018-12-20 20:13:09 -08:00
Danila Fedorin 356c10cf24 Add sending images and files 2018-12-20 19:45:41 -08:00
Danila Fedorin 98be6ed061 Add file buttons and messages (currently do nothing) 2018-12-20 17:03:26 -08:00
Danila Fedorin 2cdfc45a93 Update new users in history responses. 2018-12-20 16:39:10 -08:00
Danila Fedorin 130b964d29 Add "load older messages" button 2018-12-19 21:52:07 -08:00
Danila Fedorin c88f2f3b3c Remove unused flags. 2018-12-17 22:07:27 -08:00
Danila Fedorin 47e8969290 Store the transaction ID locally, too. 2018-12-17 21:56:24 -08:00
Danila Fedorin 7de91104b0 Send typing notifications. 2018-12-17 19:56:50 -08:00
Danila Fedorin 7f0624f112 Add http for sending typing indicators. 2018-12-17 19:41:43 -08:00
Danila Fedorin 6d39279591 Allow for non-string values in responses, and ports. 2018-12-17 16:32:39 -08:00
Danila Fedorin cf2ada4329 Add code to retrieve login token after login. 2018-12-17 16:18:47 -08:00
Danila Fedorin 128430b38f Add encoding and decoding of login datas a function. 2018-12-17 15:34:21 -08:00
Danila Fedorin 471f5b301b Store the ApiUrl in the message, so that user can't change it midway. 2018-12-17 02:40:39 -08:00
Danila Fedorin 6f1e3da27b Add storing login token (but not retrieving it) 2018-12-17 02:34:46 -08:00
Danila Fedorin 983592d520 Set read marker on opening room. 2018-12-15 20:56:17 -08:00
Danila Fedorin 6c96bae01f Send read receipts for messages received after opening room. 2018-12-15 19:22:49 -08:00
Danila Fedorin 55f40d5a51 Cleanup command code. 2018-12-14 00:08:16 -08:00
Danila Fedorin 78620c3b4f Scroll when new messages arrive and user is close to the bottom. 2018-12-14 00:02:15 -08:00
Danila Fedorin 5627168d20 Add new lookup functions. 2018-12-13 16:01:54 -08:00
Danila Fedorin 2c7b72fba6 Open room on notification click. 2018-12-13 14:06:15 -08:00
Danila Fedorin 46352c429a Add notifications 2018-12-13 13:42:23 -08:00
Danila Fedorin b25e5d77af Retrieve user display names on initial log in. 2018-12-13 12:45:30 -08:00