Commit Graph

201 Commits

Author SHA1 Message Date
Tulir Asokan d5038e6b98 Fix non-inline URL parsing 2018-02-24 14:04:23 +02:00
Tulir Asokan 55046e15b2 Add support for /command@bot bot command syntax 2018-02-24 12:57:18 +02:00
Tulir Asokan 8a7ccc0007 Refactor code 2018-02-24 12:37:12 +02:00
Tulir Asokan 1372a16459 Bridge !commands to Telegram /commands 2018-02-24 12:25:13 +02:00
Tulir Asokan 6c7f687539 Fix MessageEntityBotCommand handling 2018-02-24 12:06:30 +02:00
Tulir Asokan fed8adae97 Actually use bridge.allow_matrix_login 2018-02-24 12:06:19 +02:00
Tulir Asokan 566a2b3892 Add join/leave notifications for unauthenticated users. Fixes #81 2018-02-24 11:44:49 +02:00
Tulir Asokan 9e5cb84140 Refactor more code 2018-02-23 21:24:18 +02:00
Tulir Asokan 9e5843a0dc Refactor and clean up code 2018-02-23 21:06:28 +02:00
Tulir Asokan 2aa48f37a9 Merge pull request #79 from tulir/authless-relaybot-portals
Allow creating relaybot portals without any authenticated users
2018-02-23 18:21:35 +02:00
Tulir Asokan a1ba82c3b7 Actually use bridge.authless_relaybot_portals somewhere 2018-02-23 18:03:08 +02:00
Tulir Asokan 6fced123b1 Add comments in config updates 2018-02-23 17:56:50 +02:00
Tulir Asokan 22e4a189eb Convert Telegram room mentions into pills (ref #62) 2018-02-23 16:45:48 +02:00
Tulir Asokan c2e4f5596c Merge branch 'master' into authless-relaybot-portals 2018-02-23 16:02:18 +02:00
Tulir Asokan a26f2c2c36 Improve Matrix -> Telegram formatter. Fixes #34 2018-02-23 15:53:55 +02:00
Tulir Asokan 2d2fe86757 Move all permissions to single object in config 2018-02-23 12:07:42 +02:00
Tulir Asokan fb37af12b4 Fix bugs in command handlers and split them to separate methods 2018-02-22 22:09:35 +02:00
Tulir Asokan 7c54436dff Initial support for creating portals without any authenticated users 2018-02-22 21:12:35 +02:00
Tulir Asokan 232ec6ee42 Add room pill bridging. Fixes #62 2018-02-22 19:21:29 +02:00
Tulir Asokan 2f9cd15013 Fix registration generation on Python 3.5 2018-02-22 17:28:18 +02:00
Tulir Asokan aded9d9210 Small bugfixes 2018-02-22 17:20:37 +02:00
Tulir Asokan 25252c7b79 Remove delete-orphan cascade rule from User.portals. Hopefully fixes #76 2018-02-22 00:50:13 +02:00
Tulir Asokan 8e98ca1ce8 Don't kick user from portal on logout if chat has relay bot. Fixes #75 2018-02-22 00:37:03 +02:00
Tulir Asokan bbab5a1376 Fix phone flood error display 2018-02-22 00:35:26 +02:00
Tulir Asokan caab071a55 Don't require auth for meta commands 2018-02-22 00:34:57 +02:00
Tulir Asokan c1eb907e8a Merge pull request #73 from tulir/independent-login
Add support for out-of-Matrix login
2018-02-22 00:04:49 +02:00
Tulir Asokan bc1d0c1d2a Fix portal avatar updating 2018-02-21 23:47:41 +02:00
Tulir Asokan 74935de459 Fix minor things 2018-02-21 23:47:23 +02:00
Tulir Asokan b4d23af05d Merge branch 'master' into independent-login 2018-02-21 23:36:09 +02:00
Tulir Asokan 2d13c30a26 Fix possible errors 2018-02-21 23:35:59 +02:00
Tulir Asokan 29c71b48de Improve login page style and fix bugs 2018-02-21 23:35:44 +02:00
Tulir Asokan 03734a6745 Fix Telegram -> Matrix image bridging 2018-02-21 17:11:47 +02:00
Tulir Asokan e96e1459eb Move commands/util.py to util/ 2018-02-20 21:49:52 +02:00
Tulir Asokan 1cf0a6b150 Merge branch 'master' into independent-login 2018-02-20 21:48:05 +02:00
Tulir Asokan 6e1d497e66 Fix edit handling/deduplication in channels. Fixes #74 2018-02-20 21:43:08 +02:00
Tulir Asokan 12d4025752 Implement Telegram->Matrix deletion bridging. Fixes #63 2018-02-20 20:43:05 +02:00
Tulir Asokan 05853115c6 Use file deduplication for avatars 2018-02-20 13:34:40 +02:00
Tulir Asokan bbc5f99ae9 Fix Alembic setup and add timestamp to TelegramFile 2018-02-20 00:14:47 +02:00
Tulir Asokan f9d2d32ef0 Save and reuse MXC URIs of bridged files. Fixes #40 2018-02-19 23:27:46 +02:00
Tulir Asokan c21a55ebc7 portal.py refactoring 2018-02-19 22:30:34 +02:00
Tulir Asokan 092b80ad02 Handle surrogates in a non-hacky way 2018-02-19 20:53:37 +02:00
Tulir Asokan 51b868d9ce Split formatter to two files 2018-02-19 20:45:40 +02:00
Tulir Asokan 5930b2e3bb Stop using db.merge() in most places 2018-02-19 20:35:34 +02:00
Tulir Asokan 0a6130607d Fix avatar changes and outgoing meta change deduplication
Also move the telegram ID -> MXID generation to Puppet.get_mxid_from_id()
2018-02-19 19:52:45 +02:00
Tulir Asokan f6b18497b4 Update bot chats when updating portal participants 2018-02-19 19:32:40 +02:00
Tulir Asokan d21ac58929 Merge branch 'master' into bots 2018-02-19 18:19:53 +02:00
Tulir Asokan 7f86ec6c5d Remove debug prints 2018-02-19 18:13:44 +02:00
Tulir Asokan 1a1d7e6d90 Synchronize all users and fix joining chats via invite links, deleting portals 2018-02-19 18:10:14 +02:00
Tulir Asokan e003151c7b Merge branch 'master' into bots 2018-02-18 21:19:17 +02:00
Tulir Asokan ad11abb56e Add initial out-of-Matrix login system 2018-02-18 19:44:32 +02:00