Explorar o código

make copying videochat invitations useful

when doing 'Copy to clipboard' for a videochat-invitation,
use the text text that includes the URL to clipboard;
this is also what android/desktop are doing.

before, only the text "Videotext Invitation" was copied,
which is quote pointless :)
B. Petersen %!s(int64=3) %!d(string=hai) anos
pai
achega
74666e5ebb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -148,7 +148,7 @@ class ChatViewController: UITableViewController {
                 let msg = self.dcContext.getMessage(id: id)
                 let msg = self.dcContext.getMessage(id: id)
 
 
                 let pasteboard = UIPasteboard.general
                 let pasteboard = UIPasteboard.general
-                if msg.type == DC_MSG_TEXT {
+                if msg.type == DC_MSG_TEXT || msg.type == DC_MSG_VIDEOCHAT_INVITATION {
                     pasteboard.string = msg.text
                     pasteboard.string = msg.text
                 } else {
                 } else {
                     pasteboard.string = msg.summary(chars: 10000000)
                     pasteboard.string = msg.summary(chars: 10000000)