Giter Club home page Giter Club logo

go-skype-bridge's People

Contributors

kelaresg avatar ottohollmann avatar pastudan avatar pidongqianqian avatar roiarthurb avatar thulinma avatar tomtom5152 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

go-skype-bridge's Issues

Bridge reopens dead conversations every restart

As stated, the bridge does not honor chats I closed. Everytime I restart the bridge, I have a ton of ancient messages popping up again. Would it be possible it "reopening" only messages that are new since the last shutdown/save?

Remove login message

If you use command login, your username and password will stay in history of messages (unless you delete that message) and will be synced across all your devices. It would be nice to automatically remove login message like with other bridges.

m.login.application_service type possibly missing?

I configured the bridge and hopefully did everything correct, but the bridge writes this error in the log. The error is returned from the synapse server.

Failed to connect to homeserver: failed to ensure registered: failed to POST /_matrix/client/r0/register: M_UNKNOWN (HTTP 400): An access token should not be provided on requests to /register (except if type is m.login.application_service). Retrying in 10 seconds...

Typing Status Received but not Send / Generation of Provisioning API Shared Secret

When the other person is typing, I can see this in the chat room of my Matrix client Element, but when I am typing in Element, it does not show that in the Skype App of the other person.
When I write in my Skype App on the other hand, it does show on the other person's Skype App. So the function is not turned off or anything in the other person's Skype App.

Is there anything else I need to set for the typing status to work both ways?

Does it have anything to do with the Provisioning API? I do not know what values are allowed other than shared_secret: disable. How do I generate the shared_secret?

Segmentation violation on `HandleMessage`

Dear developers,

First, let me thank you a lot for this bridge! It has been very useful so far.

However, I am encountering issues at bridge startup (as if the user/password storage in DB introduced in #14 does not work properly): I need to manually regenerate the connection token.
Furthermore, after an umpteenth of these (where all latest conversation pop up all at once in a fantastic notifications firework) it looks like the first messages display in a conversation is unevitably leading to this segfault:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x87a7ea]

goroutine 285 [running]:
maunium.net/go/mautrix/appservice.(*IntentAPI).EnsureJoined(0x0, {0xc000029f50, 0x27})
	/opt/go-skype-bridge/go/pkg/mod/github.com/pidongqianqian/[email protected]/appservice/intent.go:70 +0x2a
maunium.net/go/mautrix/appservice.(*IntentAPI).RedactEvent(0x0, {0xc000029f50, 0x27}, {0xc000029f20, 0x2c}, {0x0, 0x0, 0x0})
	/opt/go-skype-bridge/go/pkg/mod/github.com/pidongqianqian/[email protected]/appservice/intent.go:226 +0x4b
main.(*MatrixHandler).HandleMessage.func1()
	/opt/go-skype-bridge/matrix.go:405 +0x88
created by main.(*MatrixHandler).HandleMessage
	/opt/go-skype-bridge/matrix.go:402 +0x2ec

Could you please have a look and see if something requires a bit more attention?

Thanks in advance!
L.F.

HTML escaping issues

If a message contains a HTML escaped character, such as ', the escaped version will be sent to the matrix home server resulting in some very difficult to understand messages at times, and it appears to also cause messages to vanish from the element iOS app (works fine on desktop)

P.S. great work otherwise though, one less native client I need to have running constantly

cant sync contacts

when i try to sync my skype contacts I got this error:

[Matrix/Events/ERROR] Panic in Matrix event handler: runtime error: invalid memory address or nil pointer dereference (event content:{"sender":"@myname:mydomain","type":"m.room.message","origin_server_ts":1663655706956,"event_id":"$S0hOADMFVTOMaSF9CsmG6Dc-PsWKnBpyEytGluZGJ0Y","room_id":"!zxMOxSmeNejTSSiOmD:mydomain","content":{"body":"list contacts 1 2","msgtype":"m.text","org.matrix.msc1767.text":"list contacts 1 2"},"unsigned":{"age":172,"m.relations":{"m.annotation":{"chunk":[],"limited":false,"count":0},"m.reference":{"chunk":[],"limited":false,"count":0},"m.replace":{"chunk":[],"limited":false,"count":0}}}}):

Error with login on skype account in the bridge..and syncronize information

[Aug 12, 2022 23:55:23] [User/@asdas:mx.grupotd.nat.cu/WARN] Server responded with error creating personal filtering community: failed to POST /_matrix/client/r0/create_group: M_UNRECOGNIZED (HTTP 400): Unrecognized request
[Aug 12, 2022 23:55:23] [User/@ASDasdas:mx.grupotd.nat.cu/WARN] Failed to update user-portal mapping: pq: syntax error at end of input

PD Synapse version: 1.64

Message reactions don't work

Message reactions don't work Skype->Matrix nor Matrix->Skype.
Screenshot from 2022-04-10 23-20-29

Just for tracking purpose if anybody will be interested to fix it. Also it will be probably related to issue #11 because even message reactions are animated 😒 .

GET /_matrix/client/r0/account/whoami: M_FORBIDDEN (HTTP 403): Application service has not registered this user.

Hello. I did:

./matrix-skype -c config.yaml -g -r registration.yaml

added the path to this registration.yaml to app_service_config_files of homeserver.yaml and restarted the synapse daemon. Then I tried to execute the bridge, but I get:

[Feb 13, 2021 20:01:13] [DEBUG] Checking connection to homeserver
[Feb 13, 2021 20:01:13] [ERROR] Failed to connect to homeserver: failed to GET /_matrix/client/r0/account/whoami: M_FORBIDDEN (HTTP 403): Application service has not registered this user. Retrying in 10 seconds...

I'm wondering how to fix this?

Crash after few seconds after requesting device check on login

Failed to login: get token err: can not find BinarySecurityToken

App crash few seconds after ask me to activate:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x982255]

goroutine 43 [running]:
main.(*MatrixHandler).HandleMessage.func1()
/root/bridges/skype/matrix.go:405 +0x55
created by main.(*MatrixHandler).HandleMessage in goroutine 31
/root/bridges/skype/matrix.go:402 +0x2c7

Cannot initiate a conversation with the Bing bot

Sending a message to the (automatically added) Bing contact does not work. It just replies with:

Sorry, I am not compatible with older versions of Skype. Please update to the latest Skype for us to talk. Thank you! (smileeyes)

Is there any way to make it work?

fatal error: olm/olm.h: No such file or directory

Executing build.sh on Ubuntu 22.04 fails with:

go: downloading golang.org/x/text v0.3.6
# maunium.net/go/mautrix/crypto/olm
../../go/pkg/mod/github.com/pidongqianqian/[email protected]/crypto/olm/account.go:4:11: fatal error: olm/olm.h: No such file or directory
    4 | // #include <olm/olm.h>
      |           ^~~~~~~~~~~
compilation terminated.
# github.com/mattn/go-sqlite3
sqlite3-binding.c: In function ‘sqlite3SelectNew’:
sqlite3-binding.c:128049:10: warning: function may return address of local variable [-Wreturn-local-addr]
128049 |   return pNew;
       |          ^~~~
sqlite3-binding.c:128009:10: note: declared here
128009 |   Select standin;
       |          ^~~~~~~

Any suggestion how to fix that would be great.

Emojis are presented as xml

If someone is sending an emoji in Skype, it is shown in the matrix client as xml.

for example:

  • :-) --> <ss type="smile">:-)</ss>
  • (y) --> <ss type="yes">(y)</ss>

On the other hand, sending emojis from matrix is working okay, but the animated emojis from Skype need the xml syntax.
Sending the xml stuff leads to a correct presentation on Skype.

Document usage

From the repo page, it's completely obscure how this bridge can be set up. Wiki doesn't have any info either. Is there any documentation for it? If yes, it would be useful to put some link to it into README.md or if not, at least describe briefly how a Matrix user can connect with a Skype user using the bridge.

Crash when confirm invite from Skype group

Hello,

I finaly made this run. Login works and says it was a success. I see lots of contacts showing. When I accept invite from one I get following error:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x87aa8a]

goroutine 584 [running]:
maunium.net/go/mautrix/appservice.(*IntentAPI).EnsureJoined(0x0, {0xc00037e3f0, 0x24})
        /go/pkg/mod/github.com/pidongqianqian/[email protected]/appservice/intent.go:70 +0x2a
maunium.net/go/mautrix/appservice.(*IntentAPI).RedactEvent(0x0, {0xc00037e3f0, 0x24}, {0xc00037e3c0, 0x2c}, {0x0, 0x0, 0x0})
        /go/pkg/mod/github.com/pidongqianqian/[email protected]/appservice/intent.go:226 +0x4b
main.(*MatrixHandler).HandleMessage.func1()
        /build/matrix.go:405 +0x88
created by main.(*MatrixHandler).HandleMessage
        /build/matrix.go:402 +0x2ec

I have to login again.

Thank you.

Login is not working with message "login failed, can not find 't' value, orgid is"

I use the current version of the go-skype-bridge and connect it to synapse is working so far. But If I try to log in to skype with the login command I get the error message in my matrix client: login failed, can not find 't' value, orgid is

In the log file is the same message, but without the orgid part:
Failed to login: login failed, can not find 't' value

I checked the login and password, and they are correct, at least it's the same as it is working on skype web.

As negative test, I use a wrong password and get the same message as above.

Using a bad login name leads to this error message:
Please confirm that your account password is entered correctly , orgid is

Maybe interesting: my login name contains the _ character.

Login do not persist

For me it is quite different, i can login into my skype accounts and even able send/rx couple message before it auto logout... Doesnt matter is there any activity from my side or not, result will be same, after about 1 min - session is off.
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.