Legacy Dev Forum Posts

 View Only

Sign Up

Web messaging - command to scroll the chat content window to the bottom?

  • 1.  Web messaging - command to scroll the chat content window to the bottom?

    Posted 06-05-2025 18:37

    Taisuk_Choi | 2023-06-30 06:20:08 UTC | #1

    Hi,

    I'm implementing Web Messaging for a customer and they want Auto start. When I turn on Auto-start, everything works fine until you navigate away from the web messaging page or the page re-loads on a mobile phone.

    What I found was that when you set auto-start, Genesys web messaging window does "NOT" reload the chat history, causing quite a lot of issues.

    As such, I've added below code to force the history to be loaded at the beginning.

    	Genesys("subscribe", "MessagingService.started", function({data}){
    	  	if ( !data.newsession ) {
    				Genesys("command", "MessagingService.fetchHistory"); 
    			}
    			});

    But now the problem is that after the history is loaded, the chat history area is at the "top" of the messages, showing the oldest messages.

    Is there a message that will cause chat history to go to the bottom?

    Thanks, Taisuk


    Angelo_Cicchitto | 2023-06-30 08:27:31 UTC | #2

    Hi @Taisuk_Choi the fetching and loading of history across page views should be independent from Auto-Start: please raise a ticket with care if you notice this again.


    Taisuk_Choi | 2023-07-03 01:50:26 UTC | #3

    Thanks. I resolved it.


    system | 2023-08-02 01:50:59 UTC | #4

    This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 20784