TapTalk.io Documentation
  • Introduction
  • OneTalk Omnichannel Documentation
    • Getting Started with OneTalk
      • Team Members
      • Add Topic
      • Assign Agent to Topic
      • Paid Proactive Chat
    • Channel Integration
      • Telegram Integration
      • WhatsApp SME Integration
      • Instagram DM Integration
      • Facebook Messenger Integration
      • Live Chat Integration (iOS, Android, Web)
        • OneTalk Live Chat for Android
          • Get Started
          • Event Listener
          • Authentication
          • Case & Topic
          • Navigate Live Chat UI
          • Customize UI Appearance
        • OneTalk Live Chat for iOS
          • Get Started
          • Background Process in TapTalk.io Omnichannel iOS
          • Event Delegate
          • Authentication
          • Case & Topic
          • Navigate Live Chat UI
          • Customize UI Appearance
        • OneTalk Live Chat for Web
          • Get Started
          • Callback
          • Method
        • OneTalk Live Chat for React Native
          • Get Started - Android
          • Authentication - Android
          • Get Started - iOS
          • Authentication - iOS
        • OneTalk Live Chat for Flutter
          • Get Started - Android
          • Get Started - iOS
      • Google Business Messages Integration
      • Google Business Profile Integration
      • Tokopedia Integration
    • Integration API
      • Inbox API
      • User/Contact API
    • Live Chat Widget Callback Function
    • Social Channel Button
    • Custom Chatbot Integration
      • Get Started
      • Edit or Delete Chatbot
      • Development
    • QnA via API
    • Webhook
  • PowerTalk Chat SDK Documentation
    • Getting Started with PowerTalk
    • PowerTalk Android
      • Get Started
      • Enable Chat Features
      • Authentication
      • TapUI and TapCore
      • Background Process in TapTalk.io
      • Connection
      • Event Listener
      • Push Notification
      • General
      • User
      • Room List
        • Room List - TapUI
        • Room List - TapCore
      • Chat Room and Messages
        • Chat Room and Messages - TapUI
        • Chat Room and Messages - TapCore
      • Contact
      • Message Type
      • Customize UI Appearance
      • Customize Chat Features
      • Customize Chat Message Bubble
      • Customize Navigation Bar
      • Deep Linking
      • Error Codes
    • PowerTalk iOS
      • Get Started
      • TapUI and TapCore
      • Background Process in TapTalk.io
      • Implement Application Delegate
      • Authentication
      • Connection
      • Event Delegate
      • Push Notification
      • General
      • User
      • Room List
        • Room List - TapUI
        • Room List - TapCore
      • Chat Room and Messages
        • Chat Room and Messages - TapUI
        • Chat Room and Messages - TapCore
      • Contact
      • Message Type
      • Customize UI Appearance
      • Customize Chat Features
      • Customize Chat Message Bubble
      • Customize Navigation Bar
      • Deep Linking
      • Error Codes
    • PowerTalk React Native
      • Get Started - Android
      • Get Started - iOS
    • PowerTalk Flutter
      • Get Started - Android
      • Get Started - iOS
    • Javascript SDK
      • Get Started
      • Authentication
      • Connection
      • General
      • Event Listener
      • User
      • Room List
      • Chat Room
      • Messages
      • Contact
      • Message Type
    • Server API
      • Get Started
      • Base URL
      • Authentication
      • User
      • Contact
      • Message
      • Room
    • Webhook
      • Get Started
      • Webhook Payload
  • MeetTalk SDK Documentation
    • Getting Started with MeetTalk
    • MeetTalk Android
      • Get Started
      • Event Listener
    • MeetTalk iOS
      • Get Started
      • Implement Application Delegate
      • Event Delegate
  • SendTalk API Documentation
    • Introduction
    • Whatsapp Verification
Powered by GitBook
On this page
  • Get Updated Room List
  • Get Room List by XC User ID
  • Get Personal Chat Room with User Model
  • Get User by ID
  • Remove Chat Room by Room ID
  • Get Muted Room
  • Set Muted Room
  • Unset Muted Room
  • Get Pinned Room
  • Set Pin Room
  • Unset Pinned Room

Was this helpful?

  1. PowerTalk Chat SDK Documentation
  2. Javascript SDK

Room List

If you are using core implementation type, the application's chat room list can be managed with the TapCoreRoomListManager class using the following methods:

TapTalk Room List Method

Description

​Get Updated Room List​

Call this method to fetch the latest room list data from the server and update to the local cache

Get Room List by XC User ID

Call this method to get room list by XC User ID

Get Personal Chat Room with User Model

Call this method to get personal chat room model with user model.

Get User by ID

Call this method to get user data by ID

Remove Chat Room by Room ID

Call this method to remove single room from room list

Get Updated Room List

Call this method to retrieve the latest room list data from the server.

tapCoreRoomListManager.getUpdatedRoomList({ 
      onSuccess: (roomLists) => {
           // do action here
      },  
 })

Get Room List by XC User ID

Call this method to get room list by XC User ID

tapCoreRoomListManager.getRoomByXcID(xcRoomID, { 
      onSuccess: (response) => {
           // do action here
      },
      onError: (errorCode, errorMessage) => {
           // do action here
      }  
 })

Get Personal Chat Room with User Model

Call this method to get personal chat room model with user model.

var roomModel = tapCoreRoomListManager.getPersonalChatRoomWithUser(userModel)

Get User by ID

Call this method to get user data by ID

tapCoreRoomListManager.getUserByIdFromApi(userID, { 
      onSuccess: (response) => {
           // do action here
      },
      onError: (errorCode, errorMessage) => {
           // do action here
      }  
 })

Remove Chat Room by Room ID

Call this method to remove single room from room list

tapCoreRoomListManager.removeChatRoomByRoomID(roomID)

Get Muted Room

Fetch all muted rooms

tapCoreRoomListManager.getMutedRooms((res) => 
   // do action here
})

Parameters

CALLBACK: (Method) callback method

Set Muted Room

Set mute rooms

tapCoreRoomListManager.setMutedRooms(ROOM_ID, EXPIRED_AT, (res) => 
   // do action here
})

Parameters

ROOM_ID: (Array) array of roomID EXPIRED_AT : (Number) timestamp of expired time CALLBACK: (Method) callback method

Unset Muted Room

Unset muted rooms

tapCoreRoomListManager.unsetMutedRooms(ROOM_ID, (res) => 
   // do action here
})

Parameters

ROOM_ID: (Array) array of roomID CALLBACK: (Method) callback method

Get Pinned Room

Fetch all pinned rooms

tapCoreRoomListManager.getPinnedRoomID((res) => 
   // do action here
})

Parameters

CALLBACK: (Method) callback method

Set Pin Room

Set pin rooms

tapCoreRoomListManager.pinRoom(ROOM_ID, (res) => 
   // do action here
})

Parameters

ROOM_ID: (Array) array of roomID CALLBACK: (Method) callback method

Unset Pinned Room

Unset pinned rooms

tapCoreRoomListManager.unpinRoom(ROOM_ID, (res) => 
   // do action here
})

Parameters

ROOM_ID: (Array) array of roomID CALLBACK: (Method) callback method

PreviousUserNextChat Room

Last updated 2 years ago

Was this helpful?