Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruggero1912 committed Dec 15, 2024
1 parent 0eb0812 commit d1a44ea
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ import android.database.Cursor
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.ColorDrawable
import android.graphics.drawable.Drawable
import android.media.AudioFocusRequest
import android.media.AudioFormat
import android.media.AudioManager
import android.media.AudioRecord
import android.media.MediaMetadataRetriever
import android.media.MediaPlayer
import android.net.Uri
Expand Down Expand Up @@ -133,7 +129,6 @@ import com.nextcloud.talk.messagesearch.MessageSearchActivity
import com.nextcloud.talk.models.ExternalSignalingServer
import com.nextcloud.talk.models.domain.ConversationModel
import com.nextcloud.talk.models.json.capabilities.SpreedCapability
import com.nextcloud.talk.models.json.chat.ChatMessage
import com.nextcloud.talk.models.json.chat.ReadStatus
import com.nextcloud.talk.models.json.conversations.ConversationEnums
import com.nextcloud.talk.models.json.signaling.settings.SignalingSettingsOverall
Expand Down Expand Up @@ -1638,7 +1633,7 @@ class ChatActivity :
if(index - i < 0){
break
}
if(index - i >= (adapter?.items?.size?: 0) ){
if(i == 0 || index - i >= (adapter?.items?.size?: 0) ){
continue
}
val curMsg = adapter?.items?.get(index - i)?.item
Expand Down

0 comments on commit d1a44ea

Please sign in to comment.