Giter Club home page Giter Club logo

matrix-puppet-skype's People

Contributors

aaronraimist avatar dependabot[bot] avatar esmekhov avatar kfatehi avatar nr23730 avatar sorunome avatar thomas-profitt 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

matrix-puppet-skype's Issues

Non-latin (Russian) symbols in outgoing messages from Matrix to Skype via puppet are encoded with HTML entities

I have successfully run matrix-puppet-skype, it send-receive messages normally. But there are problem with sending non-latin letters (for example, Russian) from Matrix to Skype: as example, I send тест4 in Matrix Riot web client, and Skype client received this message with HTML entities as тест4.
If I send same message from Skype to Matrix puppet - it receives normally with Russian letters.
Full latin messages sends successfully. Maybe this is encoding problem, but in both sides must be UTF-8 encoding.

TypeError: Cannot read property 'match' of undefined on new message

Error in handleThirdPartyRoomMessage { TypeError: Cannot read property 'match' of undefined
    at deskypeify ( .local/matrix-puppets/matrix-puppet-skype/skypeify.js:22:15)
    at client.getConversation.then ( .local/matrix-puppets/matrix-puppet-skype/index.js:144:17)
    at 
    at process._tickCallback (internal/process/next_tick.js:188:7)
  [stack]: 'TypeError: Cannot read property \'match\' of undefined\n    at deskypeify ( .local/matrix-puppets/matrix-puppet-skype/skypeify.js:22:15)\n    at client.getConversation.then ( .local/matrix-puppets/matrix-puppet-skype/index.js:144:17)\n    at \n    at process._tickCallback (internal/process/next_tick.js:188:7)',
  [message]: 'Cannot read property \'match\' of undefined' } { roomId: '<redacted>',
  senderId: '<redacted>',
  senderName: '<redacted>',
  avatarUrl: '<redacted>',
  text: '<redacted>\r\nG9z4V5e2' } 

Polling errors

I have a bunch of these in the Skype Protocol window::

{ poll: An error happened while processing the polled messages
caused by Error: read ECONNRESET
at exports._errnoException (util.js:1024:11)
at TLSWrap.onread (net.js:610:25)
name: 'poll',
[_message]: 'An error happened while processing the polled messages',
data: {},
cause:
{ Error: read ECONNRESET
at exports._errnoException (util.js:1024:11)
at TLSWrap.onread (net.js:610:25)
[stack]: 'Error: read ECONNRESET\n at exports._errnoException (util.js:1024:11)\n at TLSWrap.onread (net.js:610:25)',
[message]: 'read ECONNRESET',
code: 'ECONNRESET',
errno: 'ECONNRESET',
syscall: 'read' },
[_stack]: 'poll: An error happened while processing the polled messages\n caused by Error: read ECONNRESET\n at exports._errnoException (util.js:1024:11)\n at TLSWrap.onread (net.js:610:25)',
[_stackContainer]: undefined,
message: 'poll: An error happened while processing the polled messages\n caused by Error: read ECONNRESET\n at exports._errnoException (util.js:1024:11)\n at TLSWrap.onread (net.js:610:25)' } 

Error adding new contact to list of Skype Protocol Matrix room: Unknown ressource.messageType ("ThreadActivity/AddMember")

When I receive message from new user, bridge don't add user to Skype Protocol Matrix room, and shows this error:

{ poll: An error happened while processing the polled messages
  caused by Error: Unknown ressource.messageType ("ThreadActivity/AddMember") for resource:
{
	"contentformat": "FN=MS%20Shell%20Dlg; EF=; CO=0; CS=0; PF=0",
	"messagetype": "ThreadActivity/AddMember",
	"originalarrivaltime": "2017-08-24T12:45:12.957Z",
	"type": "Message",
	"version": "1503578712957",
	"ackrequired": "https://bn2-client-s.gateway.messenger.live.com/v1/users/ME/conversations/ALL/messages/1503578712957/ack",
	"origincontextid": "150357871205190055",
	"isactive": true,
	"from": "https://bn2-client-s.gateway.messenger.live.com/v1/users/ME/contacts/19:[email protected]",
	"id": "1503578712957",
	"conversationLink": "https://bn2-client-s.gateway.messenger.live.com/v1/users/ME/conversations/19:[email protected]",
	"counterpartymessageid": "1503578712957",
	"threadtopic": "murz-test_test2",
	"content": "15035787129578:live:murz-test8:murznn",
	"composetime": "2017-08-24T12:45:12.957Z"
}
    at formatMessageResource (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:139:19)
    at formatEventMessage (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:241:24)
    at MessagesPoller. (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:310:43)
    at Generator.next ()
    at fulfilled (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:4:58)
    at 
    at process._tickCallback (internal/process/next_tick.js:188:7)
  name: 'poll',
  [_message]: 'An error happened while processing the polled messages',
  data: {},
  cause: 
   { Error: Unknown ressource.messageType ("ThreadActivity/AddMember") for resource:
   {
   	"contentformat": "FN=MS%20Shell%20Dlg; EF=; CO=0; CS=0; PF=0",
   	"messagetype": "ThreadActivity/AddMember",
   	"originalarrivaltime": "2017-08-24T12:45:12.957Z",
   	"type": "Message",
   	"version": "1503578712957",
   	"ackrequired": "https://bn2-client-s.gateway.messenger.live.com/v1/users/ME/conversations/ALL/messages/1503578712957/ack",
   	"origincontextid": "150357871205190055",
   	"isactive": true,
   	"from": "https://bn2-client-s.gateway.messenger.live.com/v1/users/ME/contacts/19:[email protected]",
   	"id": "1503578712957",
   	"conversationLink": "https://bn2-client-s.gateway.messenger.live.com/v1/users/ME/conversations/19:[email protected]",
   	"counterpartymessageid": "1503578712957",
   	"threadtopic": "murz-test_test2",
   	"content": "15035787129578:live:murz-test8:murznn",
   	"composetime": "2017-08-24T12:45:12.957Z"
   }
       at formatMessageResource (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:139:19)
       at formatEventMessage (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:241:24)
       at MessagesPoller. (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:310:43)
       at Generator.next ()
       at fulfilled (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:4:58)
       at 
       at process._tickCallback (internal/process/next_tick.js:188:7)
     [stack]: 'Error: Unknown ressource.messageType ("ThreadActivity/AddMember") for resource:\n{\n\t"contentformat": "FN=MS%20Shell%20Dlg; EF=; CO=0; CS=0; PF=0",\n\t"messagetype": "ThreadActivity/AddMember",\n\t"originalarrivaltime": "2017-08-24T12:45:12.957Z",\n\t"type": "Message",\n\t"version": "1503578712957",\n\t"ackrequired": "https://bn2-client-s.gateway.messenger.live.com/v1/users/ME/conversations/ALL/messages/1503578712957/ack",\n\t"origincontextid": "150357871205190055",\n\t"isactive": true,\n\t"from": "https://bn2-client-s.gateway.messenger.live.com/v1/users/ME/contacts/19:[email protected]",\n\t"id": "1503578712957",\n\t"conversationLink": "https://bn2-client-s.gateway.messenger.live.com/v1/users/ME/conversations/19:[email protected]",\n\t"counterpartymessageid": "1503578712957",\n\t"threadtopic": "murz-test_test2",\n\t"content": "15035787129578:live:murz-test8:murznn",\n\t"composetime": "2017-08-24T12:45:12.957Z"\n}\n    at formatMessageResource (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:139:19)\n    at formatEventMessage (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:241:24)\n    at MessagesPoller. (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:310:43)\n    at Generator.next ()\n    at fulfilled (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:4:58)\n    at \n    at process._tickCallback (internal/process/next_tick.js:188:7)',
     [message]: 'Unknown ressource.messageType ("ThreadActivity/AddMember") for resource:\n{\n\t"contentformat": "FN=MS%20Shell%20Dlg; EF=; CO=0; CS=0; PF=0",\n\t"messagetype": "ThreadActivity/AddMember",\n\t"originalarrivaltime": "2017-08-24T12:45:12.957Z",\n\t"type": "Message",\n\t"version": "1503578712957",\n\t"ackrequired": "https://bn2-client-s.gateway.messenger.live.com/v1/users/ME/conversations/ALL/messages/1503578712957/ack",\n\t"origincontextid": "150357871205190055",\n\t"isactive": true,\n\t"from": "https://bn2-client-s.gateway.messenger.live.com/v1/users/ME/contacts/19:[email protected]",\n\t"id": "1503578712957",\n\t"conversationLink": "https://bn2-client-s.gateway.messenger.live.com/v1/users/ME/conversations/19:[email protected]",\n\t"counterpartymessageid": "1503578712957",\n\t"threadtopic": "murz-test_test2",\n\t"content": "15035787129578:live:murz-test8:murznn",\n\t"composetime": "2017-08-24T12:45:12.957Z"\n}' },
  [_stack]: 'poll: An error happened while processing the polled messages\n  caused by Error: Unknown ressource.messageType ("ThreadActivity/AddMember") for resource:\n{\n\t"contentformat": "FN=MS%20Shell%20Dlg; EF=; CO=0; CS=0; PF=0",\n\t"messagetype": "ThreadActivity/AddMember",\n\t"originalarrivaltime": "2017-08-24T12:45:12.957Z",\n\t"type": "Message",\n\t"version": "1503578712957",\n\t"ackrequired": "https://bn2-client-s.gateway.messenger.live.com/v1/users/ME/conversations/ALL/messages/1503578712957/ack",\n\t"origincontextid": "150357871205190055",\n\t"isactive": true,\n\t"from": "https://bn2-client-s.gateway.messenger.live.com/v1/users/ME/contacts/19:[email protected]",\n\t"id": "1503578712957",\n\t"conversationLink": "https://bn2-client-s.gateway.messenger.live.com/v1/users/ME/conversations/19:[email protected]",\n\t"counterpartymessageid": "1503578712957",\n\t"threadtopic": "murz-test_test2",\n\t"content": "15035787129578:live:murz-test8:murznn",\n\t"composetime": "2017-08-24T12:45:12.957Z"\n}\n    at formatMessageResource (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:139:19)\n    at formatEventMessage (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:241:24)\n    at MessagesPoller. (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:310:43)\n    at Generator.next ()\n    at fulfilled (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:4:58)\n    at \n    at process._tickCallback (internal/process/next_tick.js:188:7)',
  [_stackContainer]: undefined,
  message: 'poll: An error happened while processing the polled messages\n  caused by Error: Unknown ressource.messageType ("ThreadActivity/AddMember") for resource:\n{\n\t"contentformat": "FN=MS%20Shell%20Dlg; EF=; CO=0; CS=0; PF=0",\n\t"messagetype": "ThreadActivity/AddMember",\n\t"originalarrivaltime": "2017-08-24T12:45:12.957Z",\n\t"type": "Message",\n\t"version": "1503578712957",\n\t"ackrequired": "https://bn2-client-s.gateway.messenger.live.com/v1/users/ME/conversations/ALL/messages/1503578712957/ack",\n\t"origincontextid": "150357871205190055",\n\t"isactive": true,\n\t"from": "https://bn2-client-s.gateway.messenger.live.com/v1/users/ME/contacts/19:[email protected]",\n\t"id": "1503578712957",\n\t"conversationLink": "https://bn2-client-s.gateway.messenger.live.com/v1/users/ME/conversations/19:[email protected]",\n\t"counterpartymessageid": "1503578712957",\n\t"threadtopic": "murz-test_test2",\n\t"content": "15035787129578:live:murz-test8:murznn",\n\t"composetime": "2017-08-24T12:45:12.957Z"\n}\n    at formatMessageResource (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:139:19)\n    at formatEventMessage (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:241:24)\n    at MessagesPoller. (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:310:43)\n    at Generator.next ()\n    at fulfilled (matrix-puppets/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:4:58)\n    at \n    at process._tickCallback (internal/process/next_tick.js:188:7)' } 

And after this it can't send any message from this contact with error [M_UNKNOWN: No row found] because there are no user in Matrix side.

Seems there are problem on matrix bridge side, not in skype-http library.

How can I fix this error?

TypeError: Cannot read property 'id' of undefined

After some hacking around I was able to compile/install the bridge and now matrix actually created the "Skype Protocol" room. So far so good! However when I send a message I get the following error:

Error in handleThirdPartyRoomMessage { TypeError: Cannot read property 'id' of undefined
    at contact.contacts.find (/usr/local/src/matrix-puppet-skype/client.js:107:19)
    at Array.find ()
    at Client.getContact (/usr/local/src/matrix-puppet-skype/client.js:106:33)
    at App.getThirdPartyRoomDataById (/usr/local/src/matrix-puppet-skype/index.js:134:31)
    at App.getOrCreateMatrixRoomFromThirdPartyRoomId (/usr/local/src/matrix-puppet-skype/node_modules/matrix-puppet-bridge/src/base.js:545:45)
    at processTicksAndRejections (internal/process/task_queues.js:86:5)
  [stack]:
   "TypeError: Cannot read property 'id' of undefined\n    at contact.contacts.find (/usr/local/src/matrix-puppet-skype/client.js:107:19)\n    at Array.find ()\n    at Client.getContact (/usr/local/src/matrix-puppet-skype/client.js:106:33)\n    at App.getThirdPartyRoomDataById (/usr/local/src/matrix-puppet-skype/index.js:134:31)\n    at App.getOrCreateMatrixRoomFromThirdPartyRoomId (/usr/local/src/matrix-puppet-skype/node_modules/matrix-puppet-bridge/src/base.js:545:45)\n    at processTicksAndRejections (internal/process/task_queues.js:86:5)",
  [message]: "Cannot read property 'id' of undefined" } { roomId: 'ODpsaXZlOmNzZXJ0ZWd0',
  senderId: undefined,
  text: '2' } 

My setup is not the default. Here are my changes:

  • In package.json I changed skype-http version from 0.0.13 to 0.0.15
  • In package.json I changed "matrix-puppet-bridge" from #d5af7b9 to #master
  • In package.json under scripts I removed && npm run prepare
  • In skype-registration.yaml under users I changed regex from @skype_.* to `
  • In skype-registration.yaml under aliases I added the following:
-   aliases:
    - exclusive: true
      regex: '#skype_.*:matrix\.horvathg\.duckdns\.org'

Do you have any idea what could be the problem?
Thank you in advance!

Can't connect to Skype via email or phone instead of Skype username

I have new Skype account, that have no normal skype login, so I can login to it in web.skype.com only via email or phone. Skype support answer that this is normal and all new accounts will can connect only via email/phone.

But I can't configure matrix-puppet-skype to login via email (I type email in username key of config.json), after node index.js it shows error:

Unable to load crypto module: crypto will be disabled: Error: global.Olm is not defined
starting matrix client
Got push rules
synced
starting skype client
{ MicrosoftAccountLogin: Unable to login with MicrosoftAccount.
  caused by GetLiveToken: Unable to get the Live token for Skype
  caused by LiveTokenNotFound: Unable to find the Live token. This token is normally found in the HTML response as the value of the element with the id "t". This error may be caused by a change in the Microsoft login workflow. HTML page: "<html><head><noscript>JavaScript required to sign in<meta http-equiv=\"Refresh\" content=\"0; URL=https://login.live.com/jsDisabled.srf?mkt=EN-US&lc=1033\"/></noscript><title>Continue</title><script type=\"text/javascript\">function OnBack(){}function OnNext(){}function DoSubmit(){var subt=false;if(!subt){subt=true;document.fmHF.submit();}}</script></head><body onload=\"javascript:DoSubmit();\"><form name=\"fmHF\" id=\"fmHF\" action=\"https://account.live.com/identity/confirm?ru=https://login.live.com/login.srf%3flc%3d1033%26sf%3d1%26id%3d293290%26tw%3d18000%26fs%3d0%26ts%3d0%26sec%3d%26mspp_shared%3d1%26seclog%3d10%26claims%3d%26wa%3dwsignin1.0%26wp%3dMBI_SSL%26ru%3dhttps://lw.skype.com/login/oauth/proxy%253fclient_id%253d578134%2526site_name%253dlw.skype.com%2526redirect_uri%253dhttps%25253A%25252F%25252Fweb.skype.com%25252F%26contextid%3d8F3FE4061C9B2069&mkt=EN-US&uiflavor=web&id=293290&uaid=ae72fccf7556dec95ab2b682a4ecf9ca\" method=\"post\" target=\"_top\"><input type=\"hidden\" name=\"ipt\" id=\"ipt\" value=\"Dc0*npb07VftnRz0ctc0JeZ!kvwzwrZ8hgc!ghjipgsrsSdCzNvX8QNXbyif4d5k3Q0eKcL29VV1doG4*jeyqzzEIraBiNzRY*D5x3tO4*zJyLK6wj8!WUUlgXkTRXKRl4xY6zbd1eR!K6Squ*RWcn4MvxtAvp7NiNWNCh4vt9yFaW!9tqnBPygMBdgVCburkjcLrPPh3NffuLIzBtDZwXntC9deKVF!VbAAUI7D!i7q!NLldARtUrtMzo23nAVvSVkhdgO!qTlSSvsekJIJ*AzvwiXIf3t0TsPQvNBOzCUuwfhTCXTMFTrEhEu7p8AovmM!o1lO7PbI7x23ovjY9lCUb8e!5HnrCY3sT1cDx2lqixLo!s!gaXbgojcDVwUPwk!dG8AK83wLtfOyknxDFaDPfHZRd3Y3f1!0apXGLYR0!zrNysUm5MNOx1s3z7SZGYcQbYXmHk!apihhkacTpD2wXgyj7YxssGQTQ5NXyx7F\"></form></body></html>"
    at Object.create (node_modules/skype-http/dist/lib-es2015/lib/errors/microsoft-account/get-live-token.js:17:16)
    at scrapLiveToken (node_modules/skype-http/dist/lib-es2015/lib/providers/microsoft-account.js:218:61)
    at node_modules/skype-http/dist/lib-es2015/lib/providers/microsoft-account.js:137:20
    at Generator.next (<anonymous>)
    at fulfilled (node_modules/skype-http/dist/lib-es2015/lib/providers/microsoft-account.js:4:58)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
  name: 'MicrosoftAccountLogin',
  data: {},
  cause: 
   { GetLiveToken: Unable to get the Live token for Skype
     caused by LiveTokenNotFound: Unable to find the Live token. This token is normally found in the HTML response as the value of the element with the id "t". This error may be caused by a change in the Microsoft login workflow. HTML page: "<html><head><noscript>JavaScript required to sign in<meta http-equiv=\"Refresh\" content=\"0; URL=https://login.live.com/jsDisabled.srf?mkt=EN-US&lc=1033\"/></noscript><title>Continue</title><script type=\"text/javascript\">function OnBack(){}function OnNext(){}function DoSubmit(){var subt=false;if(!subt){subt=true;document.fmHF.submit();}}</script></head><body onload=\"javascript:DoSubmit();\"><form name=\"fmHF\" id=\"fmHF\" action=\"https://account.live.com/identity/confirm?ru=https://login.live.com/login.srf%3flc%3d1033%26sf%3d1%26id%3d293290%26tw%3d18000%26fs%3d0%26ts%3d0%26sec%3d%26mspp_shared%3d1%26seclog%3d10%26claims%3d%26wa%3dwsignin1.0%26wp%3dMBI_SSL%26ru%3dhttps://lw.skype.com/login/oauth/proxy%253fclient_id%253d578134%2526site_name%253dlw.skype.com%2526redirect_uri%253dhttps%25253A%25252F%25252Fweb.skype.com%25252F%26contextid%3d8F3FE4061C9B2069&mkt=EN-US&uiflavor=web&id=293290&uaid=ae72fccf7556dec95ab2b682a4ecf9ca\" method=\"post\" target=\"_top\"><input type=\"hidden\" name=\"ipt\" id=\"ipt\" value=\"Dc0*npb07VftnRz0ctc0JeZ!kvwzwrZ8hgc!ghjipgsrsSdCzNvX8QNXbyif4d5k3Q0eKcL29VV1doG4*jeyqzzEIraBiNzRY*D5x3tO4*zJyLK6wj8!WUUlgXkTRXKRl4xY6zbd1eR!K6Squ*RWcn4MvxtAvp7NiNWNCh4vt9yFaW!9tqnBPygMBdgVCburkjcLrPPh3NffuLIzBtDZwXntC9deKVF!VbAAUI7D!i7q!NLldARtUrtMzo23nAVvSVkhdgO!qTlSSvsekJIJ*AzvwiXIf3t0TsPQvNBOzCUuwfhTCXTMFTrEhEu7p8AovmM!o1lO7PbI7x23ovjY9lCUb8e!5HnrCY3sT1cDx2lqixLo!s!gaXbgojcDVwUPwk!dG8AK83wLtfOyknxDFaDPfHZRd3Y3f1!0apXGLYR0!zrNysUm5MNOx1s3z7SZGYcQbYXmHk!apihhkacTpD2wXgyj7YxssGQTQ5NXyx7F\"></form></body></html>"
       at Object.create (node_modules/skype-http/dist/lib-es2015/lib/errors/microsoft-account/get-live-token.js:17:16)
       at scrapLiveToken (node_modules/skype-http/dist/lib-es2015/lib/providers/microsoft-account.js:218:61)
       at node_modules/skype-http/dist/lib-es2015/lib/providers/microsoft-account.js:137:20
       at Generator.next (<anonymous>)
       at fulfilled (node_modules/skype-http/dist/lib-es2015/lib/providers/microsoft-account.js:4:58)
       at <anonymous>
       at process._tickCallback (internal/process/next_tick.js:188:7)
     name: 'GetLiveToken',
     data: {},
     cause: 
      { LiveTokenNotFound: Unable to find the Live token. This token is normally found in the HTML response as the value of the element with the id "t". This error may be caused by a change in the Microsoft login workflow. HTML page: "<html><head><noscript>JavaScript required to sign in<meta http-equiv=\"Refresh\" content=\"0; URL=https://login.live.com/jsDisabled.srf?mkt=EN-US&lc=1033\"/></noscript><title>Continue</title><script type=\"text/javascript\">function OnBack(){}function OnNext(){}function DoSubmit(){var subt=false;if(!subt){subt=true;document.fmHF.submit();}}</script></head><body onload=\"javascript:DoSubmit();\"><form name=\"fmHF\" id=\"fmHF\" action=\"https://account.live.com/identity/confirm?ru=https://login.live.com/login.srf%3flc%3d1033%26sf%3d1%26id%3d293290%26tw%3d18000%26fs%3d0%26ts%3d0%26sec%3d%26mspp_shared%3d1%26seclog%3d10%26claims%3d%26wa%3dwsignin1.0%26wp%3dMBI_SSL%26ru%3dhttps://lw.skype.com/login/oauth/proxy%253fclient_id%253d578134%2526site_name%253dlw.skype.com%2526redirect_uri%253dhttps%25253A%25252F%25252Fweb.skype.com%25252F%26contextid%3d8F3FE4061C9B2069&mkt=EN-US&uiflavor=web&id=293290&uaid=ae72fccf7556dec95ab2b682a4ecf9ca\" method=\"post\" target=\"_top\"><input type=\"hidden\" name=\"ipt\" id=\"ipt\" value=\"Dc0*npb07VftnRz0ctc0JeZ!kvwzwrZ8hgc!ghjipgsrsSdCzNvX8QNXbyif4d5k3Q0eKcL29VV1doG4*jeyqzzEIraBiNzRY*D5x3tO4*zJyLK6wj8!WUUlgXkTRXKRl4xY6zbd1eR!K6Squ*RWcn4MvxtAvp7NiNWNCh4vt9yFaW!9tqnBPygMBdgVCburkjcLrPPh3NffuLIzBtDZwXntC9deKVF!VbAAUI7D!i7q!NLldARtUrtMzo23nAVvSVkhdgO!qTlSSvsekJIJ*AzvwiXIf3t0TsPQvNBOzCUuwfhTCXTMFTrEhEu7p8AovmM!o1lO7PbI7x23ovjY9lCUb8e!5HnrCY3sT1cDx2lqixLo!s!gaXbgojcDVwUPwk!dG8AK83wLtfOyknxDFaDPfHZRd3Y3f1!0apXGLYR0!zrNysUm5MNOx1s3z7SZGYcQbYXmHk!apihhkacTpD2wXgyj7YxssGQTQ5NXyx7F\"></form></body></html>"
          at Object.create (node_modules/skype-http/dist/lib-es2015/lib/errors/microsoft-account/get-live-token.js:17:16)
          at scrapLiveToken (node_modules/skype-http/dist/lib-es2015/lib/providers/microsoft-account.js:218:61)
          at node_modules/skype-http/dist/lib-es2015/lib/providers/microsoft-account.js:137:20
          at Generator.next (<anonymous>)
          at fulfilled (node_modules/skype-http/dist/lib-es2015/lib/providers/microsoft-account.js:4:58)
          at <anonymous>
          at process._tickCallback (internal/process/next_tick.js:188:7)
        name: 'LiveTokenNotFound',
        data: [Object],
        message: 'LiveTokenNotFound: Unable to find the Live token. This token is normally found in the HTML response as the value of the element with the id "t". This error may be caused by a change in the Microsoft login workflow. HTML page: "<html><head><noscript>JavaScript required to sign in<meta http-equiv=\\"Refresh\\" content=\\"0; URL=https://login.live.com/jsDisabled.srf?mkt=EN-US&lc=1033\\"/></noscript><title>Continue</title><script type=\\"text/javascript\\">function OnBack(){}function OnNext(){}function DoSubmit(){var subt=false;if(!subt){subt=true;document.fmHF.submit();}}</script></head><body onload=\\"javascript:DoSubmit();\\"><form name=\\"fmHF\\" id=\\"fmHF\\" action=\\"https://account.live.com/identity/confirm?ru=https://login.live.com/login.srf%3flc%3d1033%26sf%3d1%26id%3d293290%26tw%3d18000%26fs%3d0%26ts%3d0%26sec%3d%26mspp_shared%3d1%26seclog%3d10%26claims%3d%26wa%3dwsignin1.0%26wp%3dMBI_SSL%26ru%3dhttps://lw.skype.com/login/oauth/proxy%253fclient_id%253d578134%2526site_name%253dlw.skype.com%2526redirect_uri%253dhttps%25253A%25252F%25252Fweb.skype.com%25252F%26contextid%3d8F3FE4061C9B2069&mkt=EN-US&uiflavor=web&id=293290&uaid=ae72fccf7556dec95ab2b682a4ecf9ca\\" method=\\"post\\" target=\\"_top\\"><input type=\\"hidden\\" name=\\"ipt\\" id=\\"ipt\\" value=\\"Dc0*npb07VftnRz0ctc0JeZ!kvwzwrZ8hgc!ghjipgsrsSdCzNvX8QNXbyif4d5k3Q0eKcL29VV1doG4*jeyqzzEIraBiNzRY*D5x3tO4*zJyLK6wj8!WUUlgXkTRXKRl4xY6zbd1eR!K6Squ*RWcn4MvxtAvp7NiNWNCh4vt9yFaW!9tqnBPygMBdgVCburkjcLrPPh3NffuLIzBtDZwXntC9deKVF!VbAAUI7D!i7q!NLldARtUrtMzo23nAVvSVkhdgO!qTlSSvsekJIJ*AzvwiXIf3t0TsPQvNBOzCUuwfhTCXTMFTrEhEu7p8AovmM!o1lO7PbI7x23ovjY9lCUb8e!5HnrCY3sT1cDx2lqixLo!s!gaXbgojcDVwUPwk!dG8AK83wLtfOyknxDFaDPfHZRd3Y3f1!0apXGLYR0!zrNysUm5MNOx1s3z7SZGYcQbYXmHk!apihhkacTpD2wXgyj7YxssGQTQ5NXyx7F\\"></form></body></html>"\n    at Object.create (node_modules/skype-http/dist/lib-es2015/lib/errors/microsoft-account/get-live-token.js:17:16)\n    at scrapLiveToken (node_modules/skype-http/dist/lib-es2015/lib/providers/microsoft-account.js:218:61)\n    at node_modules/skype-http/dist/lib-es2015/lib/providers/microsoft-account.js:137:20\n    at Generator.next (<anonymous>)\n    at fulfilled (node_modules/skype-http/dist/lib-es2015/lib/providers/microsoft-account.js:4:58)\n    at <anonymous>\n    at process._tickCallback (internal/process/next_tick.js:188:7)' },
     message: 'GetLiveToken: Unable to get the Live token for Skype\n  caused by LiveTokenNotFound: Unable to find the Live token. This token is normally found in the HTML response as the value of the element with the id "t". This error may be caused by a change in the Microsoft login workflow. HTML page: "<html><head><noscript>JavaScript required to sign in<meta http-equiv=\\"Refresh\\" content=\\"0; URL=https://login.live.com/jsDisabled.srf?mkt=EN-US&lc=1033\\"/></noscript><title>Continue</title><script type=\\"text/javascript\\">function OnBack(){}function OnNext(){}function DoSubmit(){var subt=false;if(!subt){subt=true;document.fmHF.submit();}}</script></head><body onload=\\"javascript:DoSubmit();\\"><form name=\\"fmHF\\" id=\\"fmHF\\" action=\\"https://account.live.com/identity/confirm?ru=https://login.live.com/login.srf%3flc%3d1033%26sf%3d1%26id%3d293290%26tw%3d18000%26fs%3d0%26ts%3d0%26sec%3d%26mspp_shared%3d1%26seclog%3d10%26claims%3d%26wa%3dwsignin1.0%26wp%3dMBI_SSL%26ru%3dhttps://lw.skype.com/login/oauth/proxy%253fclient_id%253d578134%2526site_name%253dlw.skype.com%2526redirect_uri%253dhttps%25253A%25252F%25252Fweb.skype.com%25252F%26contextid%3d8F3FE4061C9B2069&mkt=EN-US&uiflavor=web&id=293290&uaid=ae72fccf7556dec95ab2b682a4ecf9ca\\" method=\\"post\\" target=\\"_top\\"><input type=\\"hidden\\" name=\\"ipt\\" id=\\"ipt\\" value=\\"Dc0*npb07VftnRz0ctc0JeZ!kvwzwrZ8hgc!ghjipgsrsSdCzNvX8QNXbyif4d5k3Q0eKcL29VV1doG4*jeyqzzEIraBiNzRY*D5x3tO4*zJyLK6wj8!WUUlgXkTRXKRl4xY6zbd1eR!K6Squ*RWcn4MvxtAvp7NiNWNCh4vt9yFaW!9tqnBPygMBdgVCburkjcLrPPh3NffuLIzBtDZwXntC9deKVF!VbAAUI7D!i7q!NLldARtUrtMzo23nAVvSVkhdgO!qTlSSvsekJIJ*AzvwiXIf3t0TsPQvNBOzCUuwfhTCXTMFTrEhEu7p8AovmM!o1lO7PbI7x23ovjY9lCUb8e!5HnrCY3sT1cDx2lqixLo!s!gaXbgojcDVwUPwk!dG8AK83wLtfOyknxDFaDPfHZRd3Y3f1!0apXGLYR0!zrNysUm5MNOx1s3z7SZGYcQbYXmHk!apihhkacTpD2wXgyj7YxssGQTQ5NXyx7F\\"></form></body></html>"\n    at Object.create (node_modules/skype-http/dist/lib-es2015/lib/errors/microsoft-account/get-live-token.js:17:16)\n    at scrapLiveToken (node_modules/skype-http/dist/lib-es2015/lib/providers/microsoft-account.js:218:61)\n    at node_modules/skype-http/dist/lib-es2015/lib/providers/microsoft-account.js:137:20\n    at Generator.next (<anonymous>)\n    at fulfilled (node_modules/skype-http/dist/lib-es2015/lib/providers/microsoft-account.js:4:58)\n    at <anonymous>\n    at process._tickCallback (internal/process/next_tick.js:188:7)' } }

Also I try to type phone, and replace username to email in config.json but this isn't help.

Did matrix-puppet-skype support logging in via email or phone instead of skype login/username?

[Feature request] Pass skype password as input on app startup

At now we must put Skype password as plaintext in config.json file, that is not secured. Please allow optionally pass password to app via input on app startup. Via this way we can automate getting password from some secured key storage (for example, gnome keyring), or type it manually at each startup, for don't store it in file as plaintext.

yarn install fails - olm package not found

I assume at some point olm package was removed due to vulnerability, this means that either yarn.lock must be removed if it's not being updated or brought up to date.

Is there any preference for this project?

Eror

Unable to load crypto module: crypto will be disabled: Error: global.Olm is not defined
/root/bridge/matrix-puppet-skype/node_modules/olm/olm.js:19
"undefined"!==typeof module&&(module.exports=a);process.on("uncaughtException",function(a){if(!(a instanceof T))throw a;});a.inspect=function(){return"[Emscripten Module object]"}}else if(ma)a.print||(a.print=print),"undefined"!=typeof printErr&&(a.printErr=printErr),a.read="undefined"!=typeof read?read:function(){throw"no read() available (jsc?)";},a.readBinary=function(a){if("function"===typeof readbuffer)return new Uint8Array(readbuffer(a));a=read(a,"binary");z("object"===typeof a);return a},"undefined"!=
^

Error: Cannot find module 'skype-http'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/root/bridge/matrix-puppet-skype/client.js:2:19)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/root/bridge/matrix-puppet-skype/index.js:8:21)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:427:7)
at startup (bootstrap_node.js:151:9)
at bootstrap_node.js:542:3

node v7.10.1
npm v4.2.0
Ubuntu 14.04 64amd

TypeError: Cannot read property 'match' of undefined

Error appears when somebody write to the room that was created before bridge service started

Error in handleThirdPartyRoomMessage { TypeError: Cannot read property 'match' of undefined
    at deskypeify (/app/skypeify.js:22:15)
    at client.getConversation.then (/app/index.js:144:17)
    at 
    at process._tickCallback (internal/process/next_tick.js:188:7)
  [stack]: 'TypeError: Cannot read property \'match\' of undefined\n    at deskypeify (/app/skypeify.js:22:15)\n    at client.getConversation.then (/app/index.js:144:17)\n    at \n    at process._tickCallback (internal/process/next_tick.js:188:7)',
  [message]: 'Cannot read property \'match\' of undefined' } { roomId: 'MTk6NjBkNzRiN2JjN2UyNGVjOGJhM2QxZmI1YzY0ZTcwZDhAdGhyZWFkLnNreXBl',
  senderId: 'ODpuaWthc255Yzk0',
  senderName: 'Nikita Soshenko',
  avatarUrl: 'https://avatar.skype.com/v1/avatars/nikasnyc94?auth_key=-488367919',
  text: 'Всем привет.\r\nС нашей стороны партнёрка под Казахстан и механизм распознавания партнёрки по присылаемой валюте были реализованы изначально. Так что ждём вас и по идее мы готовы :)' } 

Recive messages twice after error

Sometimes following error appears in the protocol chat:

{ poll: An error happened while processing the polled messages
  caused by Error: read ECONNRESET
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
  name: 'poll',
  [_message]: 'An error happened while processing the polled messages',
  data: {},
  cause:
   { Error: read ECONNRESET
       at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
     [stack]:
      'Error: read ECONNRESET\n    at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)',
     [message]: 'read ECONNRESET',
     errno: 'ECONNRESET',
     code: 'ECONNRESET',
     syscall: 'read' },
  [_stack]:
   'poll: An error happened while processing the polled messages\n  caused by Error: read ECONNRESET\n    at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)',
  [_stackContainer]: undefined,
  message: 'An error happened while processing the polled messages',
  [stack]:
   'poll: An error happened while processing the polled messages\n  caused by Error: read ECONNRESET\n    at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)' } 

Afterwards I receive all incoming messages twice.. if the error happens again, the same message is forwarded 3 times and so on.

[Feature request] Optionally add username prefix to outgoing messages from Matrix to Skype

We use matrix-puppet-skype as bridge for talk from multiple Matrix users to Skype room. So we can invite many users in Matrix room, bridged to Skype, and talk.
But now all messages from Matrix room are sent to Skype from one login (configured in puppet), so Skype users don't see original author.
For solve this problem will be good to have an option in bridge for auto add prefix with Matrix username to outgoing message text from Matrix room to Skype.

Outgoing messages not being sent

{ poll: An error happened while processing the polled messages
caused by Error: read ECONNRESET
at exports._errnoException (util.js:1018:11)
at TLSWrap.onread (net.js:568:26)
name: 'poll',
[_message]: 'An error happened while processing the polled messages',
data: {},
cause:
{ Error: read ECONNRESET
at exports._errnoException (util.js:1018:11)
at TLSWrap.onread (net.js:568:26)
[stack]: [Getter/Setter],
[message]: 'read ECONNRESET',
code: 'ECONNRESET',
errno: 'ECONNRESET',
syscall: 'read' },
[_stack]: 'poll: An error happened while processing the polled messages\n caused by Error: read ECONNRESET\n at exports._errnoException (util.js:1018:11)\n at TLSWrap.onread (net.js:568:26)',
[_stackContainer]: undefined,
message: 'poll: An error happened while processing the polled messages\n caused by Error: read ECONNRESET\n at exports._errnoException (util.js:1018:11)\n at TLSWrap.onread (net.js:568:26)' }

I can receive messages people send me over Skype, but I can't send outgoing messages from within Matrix.

repeating 'read ECONNRESET' errors on skype bridge working without new events

When matrix-puppet-skype works - it periodically repeats this error in room:

{ poll: An error happened while processing the polled messages
  caused by Error: read ECONNRESET
    at exports._errnoException (util.js:1024:11)
    at TLSWrap.onread (net.js:610:25)
  name: 'poll',
  [_message]: 'An error happened while processing the polled messages',
  data: {},
  cause: 
   { Error: read ECONNRESET
       at exports._errnoException (util.js:1024:11)
       at TLSWrap.onread (net.js:610:25)
     [stack]: 'Error: read ECONNRESET\n    at exports._errnoException (util.js:1024:11)\n    at TLSWrap.onread (net.js:610:25)',
     [message]: 'read ECONNRESET',
     code: 'ECONNRESET',
     errno: 'ECONNRESET',
     syscall: 'read' },
  [_stack]: 'poll: An error happened while processing the polled messages\n  caused by Error: read ECONNRESET\n    at exports._errnoException (util.js:1024:11)\n    at TLSWrap.onread (net.js:610:25)',
  [_stackContainer]: undefined,
  message: 'poll: An error happened while processing the polled messages\n  caused by Error: read ECONNRESET\n    at exports._errnoException (util.js:1024:11)\n    at TLSWrap.onread (net.js:610:25)' } 

What does this error mean and how to solve it?

Skype attachments aren't transmitted

If someone sends you an attachment, there's zero indication of this on the matrix side of things. This has led to a couple awkward situations where someone has attached something and referred to it without me being able to see what they're talking about (without opening Skype).

Ideally, it would be great if attachments showed up within Matrix, and Matrix attachments were transmitted back to Skype, but a quick fix would be to display something saying that there's an attachment (even if it can't be accessed directly).

Unable to find token (node index.js first run)

When first running a fresh install the Skype client bombs out trying to find the login token. Microsoft recently updated the login workflow. Maybe a dependency needs a version bump?

node index.js
Unable to load crypto module: crypto will be disabled: Error: global.Olm is not defined
starting matrix client
Got push rules
synced
starting skype client
{ MicrosoftAccountLogin: Unable to login with MicrosoftAccount.
caused by GetLiveToken: Unable to get the Live token for Skype
caused by LiveTokenNotFound: Unable to find the Live token. This token is normally found in the HTML response as the value of the element with the id "t". This error may be caused by a change in the Microsoft login workflow. HTM
L page:

Need more docs

I configured bridge using Readme.md

But what to do next?
You should describe how to use this bridge.

I've invited skype puppet to skype room and see a lot of error messages in matrix room
#skype_puppetStatusRoom

Also I see error messages using private chat with skype puppet.

Both error messages contains correct sender and text. And I see people adding to
#skype_puppetStatusRoom

Error "data is not defined" on incoming Skype messages

Sometimes I have lost Skype messages in Matrix server, and bridge shows those error:

{ poll: An error happened while processing the polled messages
  caused by ReferenceError: data is not defined
    at App.getThirdPartyUserDataById_noPromise ([path]/matrix-puppet-skype/index.js:87:16)
    at App.getPayload ([path]/matrix-puppet-skype/index.js:103:35)
    at App.handleSkypeMessage ([path]/matrix-puppet-skype/index.js:109:24)
    at Client.client.on ([path]/matrix-puppet-skype/index.js:44:12)
    at emitOne (events.js:115:13)
    at Client.emit (events.js:210:7)
    at Api.api.on ([path]/matrix-puppet-skype/client.js:53:22)
    at emitOne (events.js:115:13)
    at Api.emit (events.js:210:7)
    at Api.handlePollingEvent ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/api.js:83:14)
    at MessagesPoller.Api.messagesPoller.on ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/api.js:30:62)
    at emitOne (events.js:115:13)
    at MessagesPoller.emit (events.js:210:7)
    at MessagesPoller. ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:312:34)
    at Generator.next ()
    at fulfilled ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:4:58)
    at 
    at process._tickCallback (internal/process/next_tick.js:188:7)
  name: 'poll',
  [_message]: 'An error happened while processing the polled messages',
  data: {},
  cause: 
   { ReferenceError: data is not defined
       at App.getThirdPartyUserDataById_noPromise ([path]/matrix-puppet-skype/index.js:87:16)
       at App.getPayload ([path]/matrix-puppet-skype/index.js:103:35)
       at App.handleSkypeMessage ([path]/matrix-puppet-skype/index.js:109:24)
       at Client.client.on ([path]/matrix-puppet-skype/index.js:44:12)
       at emitOne (events.js:115:13)
       at Client.emit (events.js:210:7)
       at Api.api.on ([path]/matrix-puppet-skype/client.js:53:22)
       at emitOne (events.js:115:13)
       at Api.emit (events.js:210:7)
       at Api.handlePollingEvent ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/api.js:83:14)
       at MessagesPoller.Api.messagesPoller.on ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/api.js:30:62)
       at emitOne (events.js:115:13)
       at MessagesPoller.emit (events.js:210:7)
       at MessagesPoller. ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:312:34)
       at Generator.next ()
       at fulfilled ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:4:58)
       at 
       at process._tickCallback (internal/process/next_tick.js:188:7)
     [stack]: 'ReferenceError: data is not defined\n    at App.getThirdPartyUserDataById_noPromise ([path]/matrix-puppet-skype/index.js:87:16)\n    at App.getPayload ([path]/matrix-puppet-skype/index.js:103:35)\n    at App.handleSkypeMessage ([path]/matrix-puppet-skype/index.js:109:24)\n    at Client.client.on ([path]/matrix-puppet-skype/index.js:44:12)\n    at emitOne (events.js:115:13)\n    at Client.emit (events.js:210:7)\n    at Api.api.on ([path]/matrix-puppet-skype/client.js:53:22)\n    at emitOne (events.js:115:13)\n    at Api.emit (events.js:210:7)\n    at Api.handlePollingEvent ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/api.js:83:14)\n    at MessagesPoller.Api.messagesPoller.on ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/api.js:30:62)\n    at emitOne (events.js:115:13)\n    at MessagesPoller.emit (events.js:210:7)\n    at MessagesPoller. ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:312:34)\n    at Generator.next ()\n    at fulfilled ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:4:58)\n    at \n    at process._tickCallback (internal/process/next_tick.js:188:7)',
     [message]: 'data is not defined' },
  [_stack]: 'poll: An error happened while processing the polled messages\n  caused by ReferenceError: data is not defined\n    at App.getThirdPartyUserDataById_noPromise ([path]/matrix-puppet-skype/index.js:87:16)\n    at App.getPayload ([path]/matrix-puppet-skype/index.js:103:35)\n    at App.handleSkypeMessage ([path]/matrix-puppet-skype/index.js:109:24)\n    at Client.client.on ([path]/matrix-puppet-skype/index.js:44:12)\n    at emitOne (events.js:115:13)\n    at Client.emit (events.js:210:7)\n    at Api.api.on ([path]/matrix-puppet-skype/client.js:53:22)\n    at emitOne (events.js:115:13)\n    at Api.emit (events.js:210:7)\n    at Api.handlePollingEvent ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/api.js:83:14)\n    at MessagesPoller.Api.messagesPoller.on ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/api.js:30:62)\n    at emitOne (events.js:115:13)\n    at MessagesPoller.emit (events.js:210:7)\n    at MessagesPoller. ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:312:34)\n    at Generator.next ()\n    at fulfilled ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:4:58)\n    at \n    at process._tickCallback (internal/process/next_tick.js:188:7)',
  [_stackContainer]: undefined,
  message: 'poll: An error happened while processing the polled messages\n  caused by ReferenceError: data is not defined\n    at App.getThirdPartyUserDataById_noPromise ([path]/matrix-puppet-skype/index.js:87:16)\n    at App.getPayload ([path]/matrix-puppet-skype/index.js:103:35)\n    at App.handleSkypeMessage ([path]/matrix-puppet-skype/index.js:109:24)\n    at Client.client.on ([path]/matrix-puppet-skype/index.js:44:12)\n    at emitOne (events.js:115:13)\n    at Client.emit (events.js:210:7)\n    at Api.api.on ([path]/matrix-puppet-skype/client.js:53:22)\n    at emitOne (events.js:115:13)\n    at Api.emit (events.js:210:7)\n    at Api.handlePollingEvent ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/api.js:83:14)\n    at MessagesPoller.Api.messagesPoller.on ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/api.js:30:62)\n    at emitOne (events.js:115:13)\n    at MessagesPoller.emit (events.js:210:7)\n    at MessagesPoller. ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:312:34)\n    at Generator.next ()\n    at fulfilled ([path]/matrix-puppet-skype/node_modules/skype-http/dist/lib-es2015/lib/polling/messages-poller.js:4:58)\n    at \n    at process._tickCallback (internal/process/next_tick.js:188:7)' } 

Message text is:

Доброго утра!
Я вернулся из отпуска. Если есть вопросы какие по проекту, готов ответить

[Feature request] Double puppet mode

It should be cool to get matrix_user<->skype_user bound.

I see it in this way:

  1. Matrix user invites skype bot to private room
  2. Matrix user set his skype credentials by commands
  3. Skype bot stores credentials for this matrix user
  4. Skype bot starts to use this credentials to talk in skype as this matrix user

If user don't want to add his credentials skype bot should use old behaviour like in
#16

Messages from non-contact users are handled incorrectly

When someone's present in the group chat, who isn't added to the list of contacts, their messages can't be processed by the bridge, causing an exception, as shown by skypebot.

poll: An error happened while processing the polled messages
  caused by ReferenceError: data is not defined
    at App.getThirdPartyUserDataById_noPromise (/home/esmekhov/matrix-puppet-skype/index.js:87:12)
    at App.getPayload (/home/esmekhov/matrix-puppet-skype/index.js:103:35)
    at App.handleSkypeMessage (/home/esmekhov/matrix-puppet-skype/index.js:109:24)
    (...omitted the rest of the stack trace)

I'll try to create a pull request fixing this shortly.

Gulp 4.0 dependency broken

Running npm install on a fresh checkout fails while installing gulp#4.0:


> [email protected] postinstall /var/lib/matrix-synapse/matrix-puppet-skype
> cd node_modules/skype-http && npm install && npm run prepare

npm ERR! code 1
npm ERR! Command failed: git checkout 4.0
npm ERR! error: pathspec '4.0' did not match any file(s) known to git.
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /var/lib/matrix-synapse/.npm/_logs/2019-02-24T22_44_18_340Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `cd node_modules/skype-http && npm install && npm run prepare`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /var/lib/matrix-synapse/.npm/_logs/2019-02-24T22_44_18_357Z-debug.log

handle emojis

lol ya
J
Justin
<ss type="laugh">:D</ss>
do emojis work?
<ss type="smile">:)</ss> :/

kfatehi
lol no it's some xml shit on my side

handle links

they come in like this:

<a href="https://open.spotify.com/track/5L7EcEdJAZ3TEpWEfsOMLD">https://open.spotify.com/track/5L7EcEdJAZ3TEpWEfsOMLD</a>

Error in handleThirdPartyRoomMessage { [M_UNKNOWN: No row found]

I got the error on receive incoming message in Skype room:

Error in handleThirdPartyRoomMessage { [M_UNKNOWN: No row found]
  errcode: 'M_UNKNOWN',
  name: 'M_UNKNOWN',
  message: 'No row found',
  data: { errcode: 'M_UNKNOWN', error: 'No row found' },
  httpStatus: 404 } { roomId: '<redacted>l',
  senderId: '<redacted>',
  senderName: '<redacted>',
  avatarUrl: 'https://avatar.skype.com/v1/avatars/<redacted>?auth_key=<redacted>',
  text: 'Не <redacted> ли случайно? )' } 

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.