Shoutbox

OnEvent_ChatWndReceiveMessage fires 3 times on open chat window - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: WLM Plus! Bug Reports (/forumdisplay.php?fid=7)
+----- Thread: OnEvent_ChatWndReceiveMessage fires 3 times on open chat window (/showthread.php?tid=96947)

OnEvent_ChatWndReceiveMessage fires 3 times on open chat window by V@no on 02-26-2011 at 07:52 PM

Hello.
It seems when "Show my last conversation in new conversation window" enabled in WLM (using 2009), and new chat window opened manually, the OnEvent_ChatWndReceiveMessage fires as many times as many last messages showed in the window.
Is there a way detect if these are actually received messages or messages from history?

Thank you.


RE: OnEvent_ChatWndReceiveMessage fires 3 times on open chat window by Amec on 02-27-2011 at 03:36 PM

Yeah, it seems this was changed in Messenger Plus! 5.

The way I got around it was cross referencing times between OnEvent_ChatWndCreated and OnEvent_ChatWndReceiveMessage, and then only taking the last message that was received... (I use my own method for event binding, so I only need to make changes in one part) Not pretty, but it sort of works, I guess. No idea how else one would do it.


RE: OnEvent_ChatWndReceiveMessage fires 3 times on open chat window by CookieRevised on 02-27-2011 at 05:02 PM

Hmmm... this shouldn't happen though. So it sounds more like a bug to me....
As such I'll report this thread to be moved to 'Bug Reports'.


RE: OnEvent_ChatWndReceiveMessage fires 3 times on open chat window by V@no on 08-28-2011 at 10:08 PM

Bumping this up. It hasn't been fixed yet.