Merge lp://staging/~pat-mcgowan/messaging-app/fix-1278790 into lp://staging/messaging-app
Status: | Merged |
---|---|
Approved by: | Tiago Salem Herrmann |
Approved revision: | 587 |
Merged at revision: | 586 |
Proposed branch: | lp://staging/~pat-mcgowan/messaging-app/fix-1278790 |
Merge into: | lp://staging/messaging-app |
Diff against target: |
192 lines (+81/-30) 4 files modified
src/qml/ComposeBar.qml (+67/-28) src/qml/Messages.qml (+1/-0) src/qml/SettingsPage.qml (+7/-2) src/qml/messaging-app.qml (+6/-0) |
To merge this branch: | bzr merge lp://staging/~pat-mcgowan/messaging-app/fix-1278790 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tiago Salem Herrmann (community) | Approve | ||
Review via email: mp+301952@code.staging.launchpad.net |
Commit message
This adds support for showing the current character count and number of messages to be sent via SMS. It includes a new label on top of the text area showing number of characters / 160 (number of messages). It is shown once the message is over 1 line in length, per other systems.
A new settings option is added to enable the feature which is off by default.
Emojis are counted as two characters. I did not test with multibyte character sets but expect that QML TextArea does the correct thing.
See lp:1278790
Description of the change
This adds support for showing the current character count and number of messages to be sent via SMS. It includes a new label on top of the text area showing number of characters / 160 (number of messages). It is shown once the message is over 1 line in length, per other systems.
A new settings option is added to enable the feature which is off by default.
Emojis are counted as two characters. I did not test with multibyte character sets but expect that QML TextArea does the correct thing.
See lp:1278790
few comments
1) drop the (1) suffix if the count is < 160
2) hide the count label if it's an MMS message (either MMS group chat or single recipient with an attachment) as the rules are different I suppose