Closed riteshbathwal closed 5 years ago
Hi @riteshbathwal ,
The offline bot is just a really simple example. You need to implement your own logic to fetch a user's history. You could for example send an API request with the userId to fetch the history from your application and then return its observable.
Got it, thanks
hello , i have implemented my logic api and get messages from server but all messages shown in the left side , (the sender and receives Id already set and is correct information but shown is only in the left side)
Hi I am using the Offline Bot Adapter. The issue that I face is that even if I set my getMessageHistory() method lilke below, I am not getting different messages from UserID1 and UserID2 , infact I am getting same two messages for all the users. How should I configure message history so that different message history is shown in different message window?
getMessageHistory(userId: any): Observable<Message[]> { console.log("getMessageHistoryCalled --> Only Once"); let mockedHistory: Array;