Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to disable appending [m] to messages? #6

Closed
tfreedman opened this issue Jan 27, 2017 · 3 comments
Closed

Any way to disable appending [m] to messages? #6

tfreedman opened this issue Jan 27, 2017 · 3 comments

Comments

@tfreedman
Copy link

I've been using this bridge in production for the past couple weeks, and most things are totally fine (except for the bugs I've filed). However, a common complaint with the people I talk to is that [m] gets appended when I'm not using Facebook Messenger natively.

Is there a nice way to disable this, so that nobody needs to know how I'm replying?

@kfatehi
Copy link
Member

kfatehi commented Jan 27, 2017 via email

@kfatehi
Copy link
Member

kfatehi commented Jan 27, 2017

@tfreedman here you can see the deduplicationTag and deduplicationTagPattern are brought in first from the config (a place for you to override them externally), and if not there, then the bridge application, and if not there, then it defaults to the '[m]'

you can see the default value here https://github.com/AndrewJDR/matrix-puppet-bridge/blob/f2aee74e0cf102775ae06529759c3aa9ab77c1e0/src/base.js#L269-L274

this should be enough information to show that you can set it in your config.json file.

the tricky part is what to set it to so that people don't see it. this works for us on imessage and so we have it coded in the bridge application there, but you can just as well use this in your config.json

https://github.com/kfatehi/matrix-puppet-imessage/blob/2fb589c6d90f7008883888c581eb25320b3734ca/index.js#L18-L23

@tfreedman
Copy link
Author

tfreedman commented Jan 29, 2017

I can confirm that this works - for anyone else wondering, just append the following to config.json right before the last closing brace.

"deduplicationTag" : " \ufeff",
"deduplicationTagPattern" : " \\ufeff$"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants