3c7d77a456
ExtendedConn.HandleJsonMessage: call jsonParseError
...
In case of something goes wrong for parsing the message as JSON message,
we should tell this the error handler.
2018-12-07 20:08:06 +01:00
da5e399333
CommandEvent.Reply: Send all messages to management room
...
Because the Bridge Bot doesn't participate in the rooms it can't send any
messages to this room. Hence, we should send all replies to the management
room.
2018-12-07 20:08:06 +01:00
a626d14a3f
No sync on startup; new command import contacts
...
Having an import of all contacts on each startup and after login is very
annoying, if you have a big list of contacts. If you choose to not join a
room with all contacts, you get the invitation over and over on each
restart of the service. Better is to have a command for the management
room to explicitly start the import.
2018-12-07 20:08:06 +01:00
ebfc5e214a
Mention help
in the first message in management room
...
To better guide the user after the first contact, tell him to use `help`
to see the list of commands.
2018-12-07 16:18:52 +01:00
0d49bd8d08
Portal.CreateMatrixRoom: ensure the user exists
...
In the log some message show up with `/_matrix/client/r0/createRoom
code=403 wrapped=M_FORBIDDEN: Application service has not registered this
user`. This is caused by the handling of text messages coming from unknown
users:
mautrix-whatsapp/vendor/github.com/Rhymen/go-whatsapp/handler.go:106
mautrix-whatsapp/user.go:250
mautrix-whatsapp/portal.go:551
Hence, before creating a Matrix room, we must ensure the user for this
room exists.
2018-12-07 16:18:52 +01:00
95c8c01450
Check errors of GetProfilePicThumb
...
When a request for GetProfilePicThumb fails, WhatsApp sends an JSON object
containing a status field: `{"status":404}`. In my tests, it did send the
codes 401 and 404 which might correspond to the HTTP status codes. At
least, we don't have data to update the avatar and should stop doing so.
2018-12-07 16:18:52 +01:00
abe73684d0
Check errors for GetGroupMetaData
...
When a request for GroupMetadata fails, WhatsApp sends an JSON object
containing a status field: `{"status":500}`. In my tests, it sends the
codes 401, 404 and 500 which might have the meaning of the HTTP status
codes. At least, we don't have data to update the portal and should stop
doing anything.
2018-12-07 16:18:44 +01:00
abab28f8a7
Merge pull request #14 from izissise/docker-uid
...
Allow to set uid guid when running whatsapp program
2018-10-26 15:36:10 +03:00
62049fdf82
Allow to set uid guid when running whatsapp program
...
Set it using the env variable UID and GUID
2018-10-24 15:46:15 +02:00
a19239b936
Don't rewrite name templates when saving config
...
Advanced template stuff isn't preserved if you execute them
2018-10-23 18:22:58 +03:00
4e03361df6
Merge pull request #12 from krombel/fixUserManagementRoom
...
parse management room from database as well
2018-10-16 22:59:27 +03:00
8427fedf98
parse management room from database as well
2018-10-16 21:58:12 +02:00
fab2bd2e12
Merge pull request #11 from krombel/implementHelp
...
implement !help
2018-10-16 22:50:11 +03:00
ed79002592
extend comments on methods of commands.go
2018-10-16 19:16:13 +02:00
c107abbeb5
add reply for unknown command; use configured command prefix
2018-10-16 19:15:38 +02:00
798a3dfd2c
implement !help
2018-10-16 18:36:22 +02:00
fa3105d058
Update dependencies. Closes #9
2018-09-22 18:27:16 +03:00
f658c61951
Update ROADMAP.md
2018-09-11 19:39:52 +03:00
a893377cc5
Fix Puppet.Scan()
2018-09-02 00:44:10 +03:00
c4ada14c2f
Increase length recently handled events array to 100
2018-09-02 00:01:22 +03:00
c888cb14a0
[BREAKING] Merge pull request #5 from tulir/desegregate
...
Desegregate users
2018-09-01 23:56:47 +03:00
68c0190594
Rename binary content en/decode functions
2018-09-01 23:53:47 +03:00
ed27fa775e
Re-break everything and fix Matrix->WhatsApp replies
2018-09-01 23:38:03 +03:00
e4a78832ad
Switch back to go-whatsapp upstream
2018-08-31 11:24:27 +03:00
79851a62b4
Add locking for whatsapp->matrix messages for desegregated group chats
2018-08-31 00:13:08 +03:00
22cdf519f2
Fix desegregation changes to make the bridge work again
2018-08-30 01:10:26 +03:00
347854dc8c
Update dependencies
2018-08-30 01:10:03 +03:00
5a1a6f9c3c
Remove config update stuff
2018-08-29 23:48:15 +03:00
c7348f29b0
Initial desegregation of users and automatic config updating
2018-08-29 00:40:54 +03:00
55c3ab2d4f
Update roadmap
2018-08-29 00:40:24 +03:00
6ad224a58b
Convert mentions to names in plaintext body. Fixes #3
2018-08-28 20:09:37 +03:00
eca9bc7887
Update dependencies
2018-08-28 20:08:29 +03:00
dad2fc29ab
Send captions in a different message and improve other things
2018-08-27 23:15:05 +03:00
b978930c88
Improve handling of weird potentially non-corner case in GetMessageIntent()
2018-08-27 01:06:27 +03:00
87b135e2a6
Update mautrix-appservice
2018-08-27 00:48:32 +03:00
6db0dc23ab
Handle potential weird corner case in GetMessageIntent()
2018-08-27 00:37:54 +03:00
e15c3286bd
Update mautrix-appservice
2018-08-26 23:55:30 +03:00
22e76b6a37
Format
2018-08-26 22:53:13 +03:00
65f077c645
Fix/improve minor things
2018-08-26 22:50:28 +03:00
a6ebc50f6d
Add dep
2018-08-26 17:29:51 +03:00
941ab724c6
Add bridge permission checks
2018-08-26 17:08:37 +03:00
9da7f15e8f
Add Matrix->WhatsApp room name changes
2018-08-26 17:02:32 +03:00
0d45b5b857
Add power level to Matrix user if they're admin
2018-08-26 16:19:50 +03:00
f78fb72622
Implement WhatsApp->Matrix power level bridging
2018-08-26 16:11:48 +03:00
d3a178ecf3
Add handling for group metadata changes and refactor things
...
Group metadata temporarily broken until power level bridging is implemented
2018-08-26 01:56:22 +03:00
ccfa85e44a
Handle user avatar changes
2018-08-26 01:56:22 +03:00
060516f9cf
Add Matrix->WhatsApp replies and other stuff
2018-08-26 01:56:22 +03:00
6d08a5ff6c
Use inline code tags for single-line whatsapp monospace blocks
2018-08-26 01:56:22 +03:00
7f91d91f1b
Fix read receipts in private chats and remove unnecessary stuff
2018-08-26 01:56:22 +03:00
160ecb0c95
Update README.md
2018-08-25 01:01:58 +03:00