Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 61bb868

Browse files
committed
[[ Bug 21172 ]] Fix revMail on mobile
Adding the common library to mobile caused the revMail function to break. `pass revMail` was added to the handler, but the engine did not support that method. Replaced the `pass` with a call to `mobileComposeMail` to restore functionality On iPhone this should be a good solution (looking at the source code). The calls for revMail are much simpler for Android, but the end result should be the same.
1 parent a649114 commit 61bb868

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Toolset/libraries/revcommonlibrary.livecodescript

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ end revGoPDF
5555
# should be ussed by people sending unicode characters, the original revMail can be used otherwise
5656
command revMail pTo, pCC, pSubject, pBody
5757
if the environment is "mobile" then
58-
pass revMail
58+
mobileComposeMail pSubject, pTo, pCC, , pBody
59+
else
60+
revMailUnicode pTo, pCC, uniEncode(pSubject), uniEncode(pBody)
5961
end if
60-
revMailUnicode pTo, pCC, uniEncode(pSubject), uniEncode(pBody)
6162
end revMail
6263

6364
command revMailUnicode pTo, pCC, pSubject, pBody

notes/bugfix-21172.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix revMail on mobile

0 commit comments

Comments
 (0)