Skip to content

Commit

Permalink
[commhistoryd] Fix regression with the missed call secondary actions.…
Browse files Browse the repository at this point in the history
… Fixes JB#51663
  • Loading branch information
Joona Petrell committed Oct 20, 2020
1 parent 53f8dca commit 9c4cb50
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/personalnotification.cpp
Expand Up @@ -299,10 +299,15 @@ bool PersonalNotification::hidden() const

bool PersonalNotification::hasPhoneNumber() const
{
if (m_eventType == CommHistory::Event::SMSEvent || m_eventType == CommHistory::Event::MMSEvent || m_eventType == VOICEMAIL_SMS_EVENT_TYPE) {
switch (m_eventType) {
case CommHistory::Event::SMSEvent:
case CommHistory::Event::MMSEvent:
case CommHistory::Event::CallEvent:
case VOICEMAIL_SMS_EVENT_TYPE:
return CommHistory::normalizePhoneNumber(m_remoteUid, true).length() > 0;
default:
return false;
}
return false;
}

void PersonalNotification::setRemoteUid(const QString& remoteUid)
Expand Down

0 comments on commit 9c4cb50

Please sign in to comment.