cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
76
Views
0
Helpful
0
Replies

Javascript Finesse API reload user.getDialogs Empty value

novanzz
Level 1
Level 1

I have a problem with user.getDialogs Javascript Finesse API. When I reload my browser, user.getDialogs it does not render, and I do not get data from the dialog. I'm using the legacy code from git LearnignSampgeGadget. I'm sharing this step here.

  1. User calls
  2. Agent receives and answers the call
  3. handleUserLoad processes
  4. user.getDialogs gets the data
  5. Agent refreshes the page
  6. user.getDialogs does not get the data
  7. and handleNewDialogdoes not process

 

handleUserLoad = function (userevent) {
        // Get an instance of the dialogs collection and register handlers for dialog additions and
        // removals
        dialogs = user.getDialogs( {
            onCollectionAdd : handleNewDialog,
            onCollectionDelete : handleEndDialog
        });
        render();
    }

 

 

 

 

0 Replies 0