Modify

#1176 closed defect (obsolete)

First message in a new skype chat gets lost

Reported by: fozzy@… Owned by: Miklos Vajna
Priority: normal Milestone:
Component: Skype Version: 3.2.2
Keywords: dbus, first message Cc:
IRC client+version: Client-independent Operating System: Linux
OS version/distro:

Description (last modified by dx)

HowtoSkype says:

Versions of Skype higher (and maybe lower) than 4.0.0.8 might not be sending first messages in a brand-new chat to bitlbee (i.e. when someone contacts you for the first time since client start). Skype just doesn't forward notifications about these to dbus for some reason.

For now clients < 4.3 cannot login, and it's time to fix this bug I think.

For a brand new chat with other user, first message look's like this:

CHAT #fozzy_bot/$fozzy_inside;3affbef0fa6e58a1 NAME #fozzy_bot/$fozzy_inside;3affbef0fa6e58a1
CHAT #fozzy_bot/$fozzy_inside;3affbef0fa6e58a1 STATUS DIALOG
CHAT #fozzy_bot/$fozzy_inside;3affbef0fa6e58a1 STATUS DIALOG
CHAT #fozzy_bot/$fozzy_inside;3affbef0fa6e58a1 DIALOG_PARTNER fozzy_bot
CHATMEMBER 99215 ROLE USER
CHAT #fozzy_bot/$fozzy_inside;3affbef0fa6e58a1 MYROLE USER
CHAT #fozzy_bot/$fozzy_inside;3affbef0fa6e58a1 MEMBERS fozzy_bot fozzy_inside
CHAT #fozzy_bot/$fozzy_inside;3affbef0fa6e58a1 FRIENDLYNAME Bender Bot
CHAT #fozzy_bot/$fozzy_inside;3affbef0fa6e58a1 ACTIVEMEMBERS fozzy_bot fozzy_inside
CHAT #fozzy_bot/$fozzy_inside;3affbef0fa6e58a1 TIMESTAMP 1407922908
CHAT #fozzy_bot/$fozzy_inside;3affbef0fa6e58a1 ADDER fozzy_bot
CHAT #fozzy_bot/$fozzy_inside;3affbef0fa6e58a1 STATUS DIALOG
CHAT #fozzy_bot/$fozzy_inside;3affbef0fa6e58a1 POSTERS fozzy_bot
CHAT #fozzy_bot/$fozzy_inside;3affbef0fa6e58a1 ACTIVITY_TIMESTAMP 1407922911

and has no

CHATMESSAGE <id> BODY <string>

But we can receive last messages like this:

GET CHAT #fozzy_bot/$fozzy_inside;3affbef0fa6e58a1 CHATMESSAGES
CHAT #fozzy_bot/$fozzy_inside;3affbef0fa6e58a1 CHATMESSAGES 100201
GET CHATMESSAGE 100201 BODY
CHATMESSAGE 100201 BODY first message test

Question is how to detect if need to send GET CHAT x CHATMESSAGES or not?

Attachments (1)

firstMessagePOC.diff (1.2 KB) - added by fozzy@… at 2014-08-15T11:30:22Z.
Proof of concept

Download all attachments as: .zip

Change History (7)

comment:1 Changed at 2014-08-14T18:01:18Z by dx

Description: modified (diff)
Priority: majornormal
Summary: First message in a brand-new chatFirst message in a new skype chat gets lost

So, it has come to this...

Changed at 2014-08-15T11:30:22Z by fozzy@…

Attachment: firstMessagePOC.diff added

Proof of concept

comment:2 Changed at 2014-08-15T11:31:29Z by fozzy@…

Dirty, but working patch

comment:3 Changed at 2014-08-15T15:59:09Z by dx

Neat! What's so dirty about it? This code looks like magnets to me

comment:4 Changed at 2014-08-15T16:42:41Z by fozzy@…

It breaks previous behaviour, when messages is not marked as read. And I haven't tested it in long term. Also I have noticed that not all dialogs sends CHAT message when someone invite you in chat, dunno if its related to this bug. I will try to gather some info in few days.

comment:5 Changed at 2014-08-18T09:04:24Z by fozzy@…

With this patch, first message sent to contact also appear in control channel, twice.

comment:6 Changed at 2018-04-29T23:50:57Z by dx

Resolution: obsolete
Status: newclosed

Closing all skype tickets (plugin removed in a949b43ed657154d4ff8492bbdb16202a1a9f22d)

Modify Ticket

Action
as closed The owner will remain Miklos Vajna.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.