Skip to content

Commit

Permalink
fixup! Move VoiceMessageTableViewCell ObjC classes to BaseChatTableVi…
Browse files Browse the repository at this point in the history
…ewCell.
  • Loading branch information
Ivansss committed Sep 27, 2024
1 parent e822173 commit 98ea4e7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions NextcloudTalk/BaseChatTableViewCell+Audio.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ extension BaseChatTableViewCell {

func setupForAudioCell(with message: NCChatMessage) {
if self.audioPlayerView == nil {
// Location preview image view
// Audio player view
let audioPlayerView = AudioPlayerView(frame: CGRect(x: 0, y: 0, width: 0, height: voiceMessageCellPlayerHeight))
self.audioPlayerView = audioPlayerView
self.audioPlayerView?.delegate = self
Expand All @@ -22,11 +22,6 @@ extension BaseChatTableViewCell {
audioPlayerView.topAnchor.constraint(equalTo: self.messageBodyView.topAnchor)
])
}

guard let messageTextView = self.messageTextView
else { return }

messageTextView.attributedText = message.parsedMarkdownForChat()
}

func prepareForReuseAudioCell() {
Expand Down

0 comments on commit 98ea4e7

Please sign in to comment.