shouldDeleteRemote

fun Message.shouldDeleteRemote(currentUserId: String?): Result<Unit>

Checks whether we should attempt to delete the message remotely.

Return

Result.Success if remote delete should be attempted, Result.Failure if the message should be deleted only locally.

Parameters

currentUserId

The ID of the currently logged in user.