Opened 9 years ago

Last modified 4 years ago

#3306 closed enhancement

Display chat scrollback again when returning from gamesetup — at Version 6

Reported by: elexis Owned by:
Priority: Nice to Have Milestone: Alpha 23
Component: Multiplayer lobby Keywords: beta
Cc: Patch: Phab:D819

Description (last modified by elexis)

Currently chat messages are only displayed in the OnTick() function in lobby.js, i.e. only once when they were received in javascript. However if you get into the gamesetup and return immediately, the chat will be blank.

This means you will miss messages (imagine someone sending you one while you were just clicking on the host game button and returned, because you noticed that someone wrote your nickname).

The XmppClient.cpp needs to save the last N messages, since saving values in JS doesn't work (After returning from the gamesetup, the values are overwritten again, see #3287).

There is a setting lobby.history that already remembers the number of chat messages to scroll back.

A script function must be added to JSInterface_Lobby.h, so that one can get the scrollback in the init() function in lobby.js.

Change History (6)

comment:1 by elexis, 8 years ago

Keywords: simple added

comment:2 by Imarok, 8 years ago

Description: modified (diff)

comment:3 by Imarok, 8 years ago

refs #3832

comment:4 by scythetwirler, 8 years ago

Keywords: beta added

comment:5 by fpre_O_O_O_O_O_O, 7 years ago

maybe all chat since in lobby

comment:6 by elexis, 7 years ago

Description: modified (diff)
Keywords: simple removed
Milestone: BacklogAlpha 23
Patch: Phab:D819
Note: See TracTickets for help on using tickets.