~tiagosh/telephony-service/delete_player_instance_on_incoming_call

« back to all changes in this revision

Viewing changes to libtelephonyservice/chatmanager.cpp

Make it possible to acknowledge all pending messages of a given conversation
at once. Fixes: #1488498
Approved by: PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
    mMessagesToAck[account->accountId()][recipients].append(messageId);
205
205
}
206
206
 
 
207
void ChatManager::acknowledgeAllMessages(const QStringList &recipients, const QString &accountId)
 
208
{
 
209
    QDBusInterface *phoneAppHandler = TelepathyHelper::instance()->handlerInterface();
 
210
    phoneAppHandler->asyncCall("AcknowledgeAllMessages", recipients, accountId);
 
211
}
 
212
 
207
213
void ChatManager::onAckTimerTriggered()
208
214
{
209
215
    // ack all pending messages