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

Setup guidance #18

Closed
skug67 opened this issue Oct 22, 2023 · 7 comments
Closed

Setup guidance #18

skug67 opened this issue Oct 22, 2023 · 7 comments

Comments

@skug67
Copy link

skug67 commented Oct 22, 2023

I'm very intrigued by this and would be interested in using it instead of the matrix-gmessages bridge (https://github.com/mautrix/gmessages) for both privacy reasons (the less info I have flowing through Google's servers the happier I am) and because honestly the Google Messages app isn't my favorite MMS/SMS interface on android.

But I haven't actually figured out how to get it set up. I had thought I'd need to set up a dedicated account to be the "manager" referred to when first installing the app and then enter the info for an existing user in the "Add A New Account" section in order to actually receive/send messages. But....

(a) I never get asked for authentication info for the "manager"
(b) When I try to "Add a New Account" I get messages regardless of whether I use an existing user separate from the manager (in which case the error is a lack of permissions for setting up a child account in the management space) or whether I use the manager account itself (in which case the error is that the user is already in the room).

Additional guidance on setup would be greatly appreciated.

And thanks for heading down this path -- I'm sure it'll be a great app.

@MangoCubes
Copy link
Owner

MangoCubes commented Oct 23, 2023

Thank you for trying my app; I really appreciate it.
To answer your questions:

  1. The manager account does not have to be dedicated. It just means who the bot reports to. This is why app never asks for authentication details for the manager; It just needs to invite the manager, and send messages to it. Whenever SMS arrives, bot invites manager into a room, and forwards it messages. Bot account does not have to be one either, but I recommend using a dedicated one for that. Both manager and bot should be created beforehand; The app does not do any registrations itself.
  2. Yes, the bot needs to be given permission to create child room in the management room. This can be done through the following steps
    i. Invite the bot before login in the Android app.
    ii. Give it permission. You can just give it admin if you can't be bothered, it should work. Note that Matrix allows you to give permission to the account that has been invited, but not yet joined, so you can do this.

Here is a video of me doing it. I hope this helps.
![Video]

Few notes about the video:

  1. You can see the warnings next to the message. They are not "Not encrypted" warnings; They indicate that the current session has not been verified. Messages are still encrypted, but the current session has not been verified. This happens only when some sessions of a user (in this case, testbot) are verified, but some are not.
  2. You might receive "Unable to decrypt messages" messages instead of actual data. This is unfortunately taking a while to fix. Workaround seems to be repeatedly leaving the management room, and re-inviting yourself. This option is available in Manage Accounts -> Vertical dropdown menu.

School has started for me, and I have limited time for personal projects. But I'll try my best to assist.

@skug67
Copy link
Author

skug67 commented Oct 23, 2023 via email

@MangoCubes
Copy link
Owner

MangoCubes commented Oct 23, 2023

I don't quite understand what you mean by that, sorry. The structure is quite fixed for now: Whenever a bot account is added to Remotrix, it creates its own dedicated space called "message space". In that space, the added bot account automatically creates a dedicated room for each SMS sender whenever a SMS message arrives. It does not create any room outside the message space (except for that one management room in the management space). The "message space" to "bot account" is 1-to-1. If you wish to show these messages to someone else, you can either:

  1. Invite someone to that message space, in which case they will see ALL SMS the bot forwards as they can join any room in that space
  2. Invite someone to one of the room in the message space. Each room in the message space is dedicated to conversation between you and one SMS sender.

Unfortunately, changing this would require quite a rework. If you can explain your use case, I'll look into it at the end of this term. Hope this helps.

@skug67
Copy link
Author

skug67 commented Oct 23, 2023 via email

@MangoCubes
Copy link
Owner

MangoCubes commented Oct 23, 2023

Ah, I see. I can recommend both adding them as the third member of the room, or having them as manager. If you have them as manager, they will be invited into the management room and subsequent messaging rooms automatically whenever you add a bot account. If you add them as normal user, they will not be automatically invited. Of course, you can manually join them, or just join the messaging space, in which case you can then join rooms inside it. The person that sends the messages and commands doesn't matter; the actions (such as !reload) are limited by whether they are in a room or not.

@skug67
Copy link
Author

skug67 commented Oct 23, 2023 via email

@MangoCubes
Copy link
Owner

Good to know it works for others too. Yeah, this app is primarily made for 1-to-1 conversations, and I have not done testing for group SMS chat. It's probably better for you to use that.

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