Implement toast messages when links are copied

This commit is contained in:
ismailgulek
2022-01-06 02:41:57 +03:00
parent 02de9c5c34
commit addb8bf722
6 changed files with 42 additions and 21 deletions

View File

@@ -295,6 +295,7 @@ final class ThreadListViewModel: ThreadListViewModelProtocol {
}
if let permalink = MXTools.permalink(toEvent: thread.id, inRoom: thread.roomId) {
MXKPasteboardManager.shared.pasteboard.string = permalink
viewState = .toastForCopyLink
}
longPressedThread = nil
}