Browse Source

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 3 years ago
parent
commit
74666e5ebb
1 changed files with 1 additions and 1 deletions
  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 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
                 } else {
                     pasteboard.string = msg.summary(chars: 10000000)