Ver Fonte

fix message type for voice messages

cyberta há 5 anos atrás
pai
commit
ce6425a2f6
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      deltachat-ios/Controller/ChatViewController.swift

+ 1 - 1
deltachat-ios/Controller/ChatViewController.swift

@@ -792,7 +792,7 @@ extension ChatViewController: MessagesDataSource {
 
 
     private func sendVoiceMessage(url: NSURL) {
     private func sendVoiceMessage(url: NSURL) {
         DispatchQueue.global().async {
         DispatchQueue.global().async {
-            let msg = DcMsg(viewType: DC_MSG_AUDIO)
+            let msg = DcMsg(viewType: DC_MSG_VOICE)
             msg.setFile(filepath: url.relativePath, mimeType: "audio/m4a")
             msg.setFile(filepath: url.relativePath, mimeType: "audio/m4a")
             msg.sendInChat(id: self.chatId)
             msg.sendInChat(id: self.chatId)
         }
         }