Commit Graph

106 Commits

Author SHA1 Message Date
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 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 f66c182e82 Fix Matrix->Telegram formatted messages throwing an error 2018-02-18 16:29:19 +02:00
Tulir Asokan 95fad313c5 Deduplicate outgoing avatar/title changes 2018-02-18 12:37:47 +02:00
Tulir Asokan 457df435ac Deduplicate service messages, typing notifications and presence 2018-02-18 12:31:52 +02:00
Tulir Asokan 7b0c58aa27 Handle incoming messages from bot 2018-02-18 12:03:35 +02:00
Tulir Asokan 7dc5384d52 Update future-fstrings and stop concatenating multiline strings 2018-02-18 11:24:51 +02:00
Tulir Asokan c1f582f17a Remove debug print 2018-02-17 21:26:22 +02:00
Tulir Asokan eef48a9a56 Synchronize deleted users in sync_telegram_users() 2018-02-17 20:35:23 +02:00
Tulir Asokan 4673546b42 Add option to bridge notices and command to get relaybot info 2018-02-17 19:17:17 +02:00
Tulir Asokan 2f75fa1cfe Add support for bot message relaying 2018-02-17 17:48:48 +02:00
Tulir Asokan 504be22b4b "Handle" missing database messages when handling edits 2018-02-17 15:04:38 +02:00
Tulir Asokan 427d97a1ff Merge pull request #58 from tulir/next-native-replies
Update native reply format
2018-02-17 15:04:05 +02:00
Tulir Asokan db637bf543 Add simple edit event deduplication 2018-02-16 17:49:36 +02:00
Tulir Asokan 88ef7d856e Merge branch 'master' into next-native-replies 2018-02-16 17:41:27 +02:00
Tulir Asokan 57e1a863dc Minor style fixes 2018-02-16 17:39:24 +02:00
Tulir Asokan 0d8428fa70 Fix edit handling 2018-02-16 15:11:14 +02:00
Tulir Asokan 6615a68cee Remove unnecessary get_input_entity calls 2018-02-15 13:14:30 +02:00
Tulir Asokan c29059d5d5 Merge branch 'master' into python3.5 2018-02-14 23:35:55 +02:00
Tulir Asokan aff2b313c5 Merge branch 'master' into next-native-replies 2018-02-14 23:34:46 +02:00
Tulir Asokan 089d372334 Fix incoming channel messages and signatures. Fixes #67 2018-02-14 23:22:09 +02:00
Tulir Asokan 40be42fec4 Improve initial power level handling
Fixes #66
Fixes #65
2018-02-14 22:46:05 +02:00
Tulir Asokan 6d99258c99 Merge branch 'master' into python3.5 2018-02-13 13:55:10 +02:00
Tulir Asokan 16b98fa44c Merge branch 'master' into next-native-replies 2018-02-13 13:52:21 +02:00
Tulir Asokan 27083a23ed Update database when editing message so replies point to edit 2018-02-13 13:51:27 +02:00
Tulir Asokan 65ba1f082b Merge branch 'master' into next-native-replies 2018-02-13 13:40:00 +02:00
Tulir Asokan 0147475aec Add optional edit handling with replies. Fixes #47 2018-02-13 13:35:18 +02:00
Tulir Asokan 90466ba941 Handle IntentErrors when cleaning up rooms 2018-02-13 01:13:27 +02:00
Tulir Asokan 496ebd2c8d Handle some weird cases with get_joined_rooms() 2018-02-13 01:10:03 +02:00
Tulir Asokan 2064f2b2d1 Store user portals and kick when logging out. Fixes #53 2018-02-13 00:58:03 +02:00
Tulir Asokan e42fcd2fb3 Move command handlers to own module and add clean-rooms command (ref #59) 2018-02-13 00:08:40 +02:00
Tulir Asokan e1e9ba80fa Add Python 3.5 compatibility 2018-02-11 22:41:44 +02:00
Tulir Asokan 0e56592966 Remove Python 3.5 compatibility on master branch 2018-02-11 22:39:02 +02:00
Tulir Asokan 507337ace2 Update native reply format. Fixes #57 2018-02-11 12:37:43 +02:00
Tulir Asokan 8971601c44 Handle leaving chats from other clients 2018-02-10 21:50:21 +02:00
Tulir Asokan 8a5c067259 Add missing awaits and use lock for create_matrix_room. Fixes #49 2018-02-10 21:33:57 +02:00
Tulir Asokan 772e80f74c Add some missing awaits 2018-02-10 20:21:09 +02:00
Tulir Asokan 8fc8cf0dd8 Fix power level update checking 2018-02-10 14:47:32 +02:00
Tulir Asokan 832e13947c Add missing awaits 2018-02-10 14:41:25 +02:00
Tulir Asokan a7c81e46e3 Remove unnecessary thread safety 2018-02-10 12:13:13 +02:00
Tulir Asokan 55dc1ff3c7 Initial asyncio version 2018-02-09 23:17:03 +02:00
Tulir Asokan edd290e27f Improve things and attempt to fix issue #49 2018-02-08 23:12:12 +02:00