Commit Graph

110 Commits

Author SHA1 Message Date
Alex 6292303a31 Fix message duplication due to a race-condition 2020-03-13 10:49:42 +01:00
Alex 06929747d6 Support Facebook stickers 2020-03-13 10:13:31 +01:00
Alex 6c118d651e Remove temporary test code 2020-03-11 08:53:23 +01:00
Alex 15e3dc46cf Mattermost user search 2020-03-09 18:12:25 +01:00
Alex 586706f02b Fix search 2020-03-09 18:05:53 +01:00
Alex 7c39436eda Save client pickle automatically (messenger) 2020-03-09 18:02:13 +01:00
Alex f9e0c58f3c Fix revUserId (messenger) and implement search (messenger only for now) 2020-03-09 17:41:53 +01:00
Alex 0d6fa02a78 Initial backlog in reversed order (just a convenience) 2020-03-06 21:48:37 +01:00
Alex c6035d0dbe (not much) 2020-03-06 21:15:11 +01:00
Alex 515f7be8f4 Clean up **a bit** 2020-03-05 23:27:41 +01:00
Alex 3cbc202f31 bold 2020-03-05 23:02:40 +01:00
Alex d85e5c12ca Reformulate 2020-03-05 23:02:07 +01:00
Alex f77a8dcacf Add info on FB client pickle 2020-03-05 23:01:04 +01:00
Alex 01a5065240 Handle empty client_pickle 2020-03-05 22:55:11 +01:00
Alex 62dae5a0a2 `client_pickle` messenger configuration param
so that a serialized client object can be passed, bypassing the need to re-login at each restart
2020-03-05 16:59:37 +01:00
Alex b7090546a9 Write some in README 2020-03-04 23:14:03 +01:00
Alex 8a759683a7 Fix SIGSEGV 2020-03-04 23:12:25 +01:00
Alex 3288cea61c Don't flood Messenger bridge logs to stderr by default 2020-03-04 23:04:01 +01:00
Alex 979755a324 Fix JOIN: do syncing in separate thread (otherwise cache_get doesn't work and we get a deadlock) 2020-03-04 22:52:46 +01:00
Alex 8e67699fe4 Better practices 2020-03-04 18:16:26 +01:00
Alex 536f3cd6b8 TMP 2020-03-04 18:12:04 +01:00
Alex d4d3cc422b Improve exiting (actually it was Mattermost that was creating a deadlock) 2020-03-04 17:44:22 +01:00
Alex df1f2d38b3 Handle shutdown better 2020-03-02 21:51:13 +01:00
Alex 7e0dbc5824 (wip) many things don't work 2020-03-01 22:12:43 +01:00
Alex 0d54b5acdb Colors 2020-03-01 20:41:18 +01:00
Alex d5d74b0b73 Messenger: hopefully handle joins correctly 2020-03-01 20:38:00 +01:00
Alex d2791094d9 Update how mattermost connector works to be more resilient to deco 2020-03-01 20:37:34 +01:00
Alex 1d8b7ef84a Refactor some && officially integrate Messenger backend :) 2020-03-01 15:48:58 +01:00
Alex f251d67c32 UNTESTED: GROUP CHATS ;; add handlers for member join/leave and name changes 2020-03-01 15:38:54 +01:00
Alex 0823b72acc Add timestamps to backlogged messages 2020-03-01 15:28:11 +01:00
Alex b453406299 Handle attachments, sometimes 2020-03-01 15:19:09 +01:00
Alex 2eda975741 Attachments can be received 2020-03-01 14:48:42 +01:00
Alex 75a1dee061 Refactor user info fetching logic 2020-03-01 14:30:51 +01:00
Alex 6055544313 Now receiving messages from messenger as well (rudimentary) 2020-03-01 14:14:18 +01:00
Alex 018f4a751a Read backlog; handle messages in the correct order 2020-03-01 13:27:29 +01:00
Alex 810e75a34d Very primitive ability to send fb messages 2020-03-01 13:08:32 +01:00
Alex 1316a3031b Load member lists and avatar (low res) from facebook 2020-02-29 20:47:44 +01:00
Alex 7431469632 Support for external processes; stub FB messenger bridge 2020-02-29 18:34:14 +01:00
Alex 2649e41c85 Allow _ezbr_ to be put in suffix of usernames/room aliases instead of prefix 2020-02-29 10:51:09 +01:00
Alex 38a3f1bdb1 Fix Mattermost event deduplication
Mattermost assigns its own IDs to messages, thus when sending a message
to Mattermost the event_seen key that has to be written must take into
account that ID and not the one that we put in the event (which was the
Matrix event ID)

Note that for XMPP anything can be used as an ID, so using the Matrix
event ID there worked, but it's actually not so good.
2020-02-29 10:01:42 +01:00
Alex 1c038995be Allow "query" again 2020-02-28 22:49:31 +01:00
Alex 708bd14e99 Fixes 2020-02-28 22:08:18 +01:00
Alex 2444302510 Put Easybridge avatar in Docker container 2020-02-28 20:07:47 +01:00
Alex 80a8759eb4 Add Dockerfile, LICENSE, README.md 2020-02-28 19:14:04 +01:00
Alex 35b93d2722 (nothing) 2020-02-28 18:29:10 +01:00
Alex d4e07e81c5 Error channels; notify users of restart 2020-02-28 17:42:15 +01:00
Alex 3880bd1701 Add easybridge account config widget in system rooms 2020-02-28 17:32:09 +01:00
Alex 3bb8a78d07 Store the user's key in the session store so that login/unlock is automatic if cookie is still there 2020-02-28 17:20:32 +01:00
Alex 669c2c1c28 Actually gorm:"type:text" was useless
With the Postgres backend, strings will use text by default.
Using varchar(255) by default (which is stupid) is done only for sqlite,
which doesn't care about the type anyways.
2020-02-28 17:00:53 +01:00
Alex eaf245e3ee Fix db models to use text instead of varchar; remove unused columns & fix index names 2020-02-28 16:55:45 +01:00