~ubuntu-branches/ubuntu/wily/messaging-app/wily

« back to all changes in this revision

Viewing changes to src/qml/messaging-app.qml

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Tiago Salem Herrmann
  • Date: 2015-02-04 21:11:18 UTC
  • mfrom: (1.1.65)
  • Revision ID: package-import@ubuntu.com-20150204211118-e1oeqd0pqa0azmza
Tags: 0.1+15.04.20150204-0ubuntu1
[ Tiago Salem Herrmann ]
Add initial MMS group chat support. (LP: #1415458)

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
        mainStack.currentPage.showBottomEdgePage(Qt.resolvedUrl("Messages.qml"))
137
137
    }
138
138
 
139
 
    function startChat(phoneNumber, text) {
 
139
    function startChat(phoneNumbers, text) {
140
140
        var properties = {}
141
 
        var participants = [phoneNumber]
 
141
        var participants = phoneNumbers.split(";")
142
142
        properties["participants"] = participants
143
143
        properties["text"] = text
144
144
        emptyStack()
145
 
        if (phoneNumber === "") {
 
145
        if (participants.length === 0) {
146
146
            return;
147
147
        }
148
148
        mainStack.push(Qt.resolvedUrl("Messages.qml"), properties)