Skip to content

4.23.0

Compare
Choose a tag to compare
@sendbird-sdk-deployment sendbird-sdk-deployment released this 20 Nov 06:46
· 10 commits to master since this release
ad81001

Features

SDK now supports Custom Report Categories configured through Sendbird Dashboard, which takes effect after restarting the app.
Previous report categories will remain until app restart.

  • Added SendbirdChat.getReportCategoryInfoList(completionHandler:)
  • Added ReportCategoryInfo
    • Added new report() methods with using ReportCategoryInfo

      class SendbirdChat {
          // Fetch list of `ReportCategoryInfo`
          public static func getReportCategoryInfoList(completionHandler: ReportCategoryInfoListHandler? = nil)
      }
      
      class BaseChannel {
          public func report(
              reportCategoryInfo: ReportCategoryInfo,
              reportDescription: String?,
              completionHandler: SBErrorHandler?
          )
          public func reportUser(
              _ offendingUser: User,
              reportCategoryInfo: ReportCategoryInfo,
              reportDescription: String?,
              completionHandler: SBErrorHandler?
          )
          public func reportMessage(
              _ message: BaseMessage,
              reportCategoryInfo: ReportCategoryInfo,
              reportDescription: String?,
              completionHandler: SBErrorHandler?
          )
      }
      
  • Deprecated ReportCategory
    • Deprecated BaseChannel.report(category:reportDescription:completionHandler:)
    • Deprecated BaseChannel.report(offendingUser:reportCategory:reportDescription:completionHandler)
    • Deprecated BaseChannel.report(message:reportCategory:reportDescription:completionHandler)

Improvement

  • Improved SDK's memory cache management.