Tulir Asokan
578bc7cd5a
Only leave group chat portals with default puppet. Fixes #418
2020-02-08 12:50:17 +02:00
Tulir Asokan
50984dab14
Trust displaynames from non-contacts when syncing puppets
2019-12-25 15:49:35 +02:00
Tulir Asokan
71cdee5a4d
Fix crash when login shared secret is not enabled
2019-12-15 19:04:43 +02:00
Tulir Asokan
2ae4b23528
Add option to log in to custom puppet with shared secret
2019-12-15 18:50:07 +02:00
Tulir Asokan
91e6a73f33
Fix incorrectly case sensitive username finding in db. Fixes #384
2019-11-30 15:21:47 +02:00
Tulir Asokan
5411de90fc
Update some things
2019-10-28 01:09:37 +02:00
Tulir Asokan
f9a692b5ef
Telegram now allows custom contact names without knowing the phone number, so stop trusting those names
2019-10-27 18:08:19 +02:00
Tulir Asokan
3c2268870b
Fix some potential exceptions when asyncio.gathering
2019-09-02 22:21:48 +03:00
Tulir Asokan
6bccf5595b
Make custom puppet errors at startup non-fatal
2019-08-15 22:34:16 +03:00
Tulir Asokan
2a327cc29e
Handle update_info errors inside entity instead of in user
2019-08-13 14:44:24 +03:00
Tulir Asokan
60e35c1bb9
Add command to sync specific portal
2019-08-10 14:24:26 +03:00
Tulir Asokan
117bb5bd86
Fix cleaning up whitespace names
2019-08-10 13:53:30 +03:00
Tulir Asokan
e8ba274776
Use unicodedata for cleaning up whitespace names
2019-08-10 13:23:44 +03:00
Tulir Asokan
76a1e20f13
Improve whitespace name cleanup
2019-08-10 13:17:15 +03:00
Tulir Asokan
937de0fa00
Reduce usage of regexes
2019-08-08 23:15:15 +03:00
Tulir Asokan
ad499b977e
Persist next_batch for custom puppets
2019-08-06 23:16:17 +03:00
Tulir Asokan
cf6eb604bd
Make displayname max length configurable
2019-08-06 21:37:49 +03:00
Tulir Asokan
8655f5903a
Improve things
2019-08-06 21:30:14 +03:00
Tulir Asokan
43d16474c2
Improve logging and make get_dialogs use iterators more
2019-08-06 19:58:15 +03:00
Tulir Asokan
6852bae7f9
Move more things to use telethon methods
2019-08-06 01:46:22 +03:00
Tulir Asokan
d6ebce0425
Make it work
2019-08-06 00:51:27 +03:00
Tulir Asokan
d6a2e7a9f7
Split portal.py and migrate more stuff to mautrix-0.4
2019-08-05 00:11:21 +03:00
Tulir Asokan
d521bbc0fa
Merge branch 'master' into mautrix-0.4
2019-08-03 21:22:38 +03:00
Tulir Asokan
281f7203dc
Filter non-nice whitespace out of displaynames
2019-07-29 20:11:35 +03:00
Tulir Asokan
d4e3956941
Even more migrations to mautrix-python
2019-07-19 21:36:21 +03:00
Tulir Asokan
8d4a9dc231
Start migrating to mautrix-python
2019-07-18 23:24:25 +03:00
Tulir Asokan
be6d395ed6
Remove Python 3.5 compatibility
2019-07-18 23:24:25 +03:00
Tulir Asokan
87aa0b6659
Limit displaynames sent to Matrix to 100 characters
2019-07-18 23:23:15 +03:00
Tulir Asokan
4942789213
Fix vulnerability in event handling
2019-07-09 19:43:37 +03:00
Tulir Asokan
28bed96e40
Fix displayname not updating for some users
...
Users who the bridge only saw via logged in users with the target user
in their contact lists wouldn't get their displayname updated due to an
invalid condition in the update_displayname function.
2019-07-04 22:32:30 +03:00
Tulir Asokan
5fba658c66
Update to telethon 1.8. Fixes #334
2019-06-20 21:42:22 +03:00
Tulir Asokan
5bbadbbdc8
Fix typo
2019-05-15 20:16:04 +03:00
Tulir Asokan
ce92cd31bf
Fix updating user info from entities attached to updates
...
Also made it trust info from users who don't have the puppet's phone number.
2019-05-15 20:05:27 +03:00
Tulir Asokan
6fef2a9a87
Update user info from entities attached to updates
2019-05-15 00:49:17 +03:00
Tulir Asokan
2cf9dcafd9
Update copyright year and fix minor lint problems
2019-03-19 18:30:36 +02:00
Tulir Asokan
7c46bf4b9e
Remove remaining traces of ORM
2019-03-16 17:13:28 +02:00
Tulir Asokan
9174186442
Stop using SQLAlchemy ORM everywhere
2019-02-14 00:06:45 +02:00
Tulir Asokan
f8e429f08a
More file splitting and new admin commands
2019-02-12 23:48:08 +02:00
Tulir Asokan
cf847d3b8e
Finish moving portals and users to SQLAlchemy Core
2019-02-12 14:42:03 +02:00
Tulir Asokan
dad0ccb3c0
Clean up code
2018-12-23 19:51:02 +02:00
Tulir Asokan
75b6e4f633
Strip displayname format in Matrix->Telegram non-username mentions. Fixes #138
2018-12-20 16:45:40 +02:00
Tulir Asokan
5c4db8df5b
Fix Telegram->Matrix file transfer broken in b2e183e363
2018-12-20 00:32:27 +02:00
Tulir Asokan
65e0ebdb37
Add command to set username and fix some bugs
2018-12-19 22:36:51 +02:00
Tulir Asokan
8da1fb78b8
Handle aiohttp errors in syncer. Fixes #210
2018-10-21 00:09:37 +03:00
Tulir Asokan
cea8163366
Only match integers in puppet mxid regex. Fixes #234
2018-10-21 00:08:02 +03:00
Tulir Asokan
d4ea5f8b38
Improve type hints and set version to 0.4.0+dev
2018-09-10 01:14:12 +03:00
Tulir Asokan
4f36a2c7c1
Simplify displayname similarity calculation
2018-08-17 00:06:37 +03:00
Kai A. Hiller
e751d140f2
Change case of new types
2018-08-09 14:11:41 +02:00
Kai A. Hiller
0f8009b1e9
Add missing type hints and fix most type errors except for Optionals.
2018-08-09 03:31:04 +02:00
Kai A. Hiller
08dd5b5b15
Add None return type to functions
2018-08-09 02:42:47 +02:00