Skip to content

Qiscus Chat SDK (core) v1.2.4 (XCode 11.2 - 11.3.x)

Compare
Choose a tag to compare
@ariefnurputranto ariefnurputranto released this 20 Feb 00:13
· 113 commits to master since this release

Changelog

  • Adding dynamic configuration on the client side

**** Note :

In func getUsers metaData and searchUsername is deprecated, you can add searchUsername using emptyString. and create local var for page.

sdk sample core before

QiscusCore.shared.getUsers(searchUsername: "", page: page, limit: 20,onSuccess: { (contacts, metaDat) in
            if (metaData.currentPage! >= self.page){

                if metaData.currentPage! == self.page {
                    self.stopLoad = true
                }else{
                    self.page += 1
                }

                self.loadContactsDidSucceed(contacts: contacts)
            }
            
            if contacts.count != 0 {
               self.page += 1
               self.loadContactsDidSucceed(contacts: contacts)
            } else {
                self.stopLoad = true
            }
            
        }) { (error) in
            self.loadContactsDidFailed(message: error.message)
        }

sdk sample core new

QiscusCore.shared.getUsers(searchUsername: "", page: page, limit: 20,onSuccess: { (contacts, metaDat) in
            if contacts.count != 0 {
               self.page += 1
               self.loadContactsDidSucceed(contacts: contacts)
            } else {
                self.stopLoad = true
            }
            
        }) { (error) in
            self.loadContactsDidFailed(message: error.message)
        }