-
Notifications
You must be signed in to change notification settings - Fork 23
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
Find group chats by chat id #37
Conversation
@michaelnew Can you also have a look at this? |
I think #31 happens because matrix-appservice-bridge escapes characters like Anyway, it looks like this avoids the issue by not relying on user IDs to match up group chats at all and just using the chat ID from the room name. Which is a way more sane way of doing it anyway. We should probably still try and get a fix in with matrix-appservice-bridge in case we want to match up user IDs in the future, but that's really beside the point. I'm a big fan of this change. I've had issues (even with a hacky fix for the character escaping) of group messages forking into different matrix rooms because the list of users was out of order or who knows what. So I'm hoping this will end up fixing that too. I'm testing it right now, so far so good. 👍 from me. |
I believe the previous method was only creating There are probably additional cases to handle. I didn't test if this works with chats that have at least one non-iMessage user (green text bubbles). One of the advantages to being my friend is occasionally receiving a random message reading "testing" followed by "wow it worked!!" but I didn't want to push it too far all at once, haha. |
Ha, yeah my friends get those messages too :) I didn't realize I had the same thought about SMS. I'm going to see if I can set up a group chat with an SMS user and test that out. |
Actually scratch that. I don't think I can create a group chat with an SMS user since my iMessage account no longer has a phone number associated with it. So I won't be able to test that. Regardless, I still think we should merge this change since group chats are currently broken. Even if there are edge cases that aren't covered here, it's better than what we have. |
I'd be willing to carve out some time to circle back and test out SMS stuff since I do have a working account with a phone number. Can't hard-commit on when, but possibly this week? |
seeing this error when using the branch. the message goes through but this is reported in the puppet control room
|
sendGroupMessage (id, text, file) { | ||
return iMessageSendGroup(id, text, file); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this requires also a change in https://github.com/matrix-hacks/matrix-puppet-imessage/blob/master/index.js#L196
This probably resolved the issue of @ericmigi
Thank you for your reply! :) I'm going to merge if the issue of @ericmigi is resolved. |
I have been running this branch for about a week with no issues. Everything works, including group messages |
Fixes #31.