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

!translate trigger is not always triggered on mobile when copy paste #2

Open
rubo77 opened this issue Aug 24, 2019 · 0 comments
Open

Comments

@rubo77
Copy link
Contributor

rubo77 commented Aug 24, 2019

If you copy paste this line here directly from github in the browser on android (i use Brave) and paste it into a riot chat with the bot, the bot is not responding:

 !translate en ru Hello world.

this is the resulting source of the message:

{
  "unsigned": {
    "age": 49358
  },
  "type": "m.room.message",
  "sender": "@rubo77:matrix.myserver.de",
  "content": {
    "format": "org.matrix.custom.html",
    "msgtype": "m.text",
    "formatted_body": "!translate en ru Hello world.",
    "body": "!translate en ru Hello world."
  },
  "origin_server_ts": 1566645917777,
  "event_id": "$iP_ba9xsEqTVAjxxxxxxxiHg2-Gco2HFkGW4oEc",
  "room_id": "!SbVxxxxxxxxBEeQ:matrix.myserver.de"
}

While copy paste on PC using Chrome and riot-web works fine, this is the resulting message:

{
  "unsigned": {
    "transaction_id": "m15612345676043.0",
    "age": 149
  },
  "type": "m.room.message",
  "sender": "@rubo77:matrix.myserver.de",
  "content": {
    "body": "!translate en ru Hello world.",
    "msgtype": "m.text"
  },
  "origin_server_ts": 1566645976143,
  "event_id": "$swf3BgLLqzeMxxxxxxxx7hgSbPRuZbEGulNDS3c",
  "room_id": "!SbVxxxxxxxxBEeQ:matrix.myserver.de"
}
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

1 participant