Skip to content

Commit

Permalink
Merge branch 'jb51663' into 'master'
Browse files Browse the repository at this point in the history
[commhistoryd] Fix regression with the missed call secondary actions. Fixes JB#51663

See merge request mer-core/commhistory-daemon!48
  • Loading branch information
jpetrell committed Oct 20, 2020
2 parents 53f8dca + 9c4cb50 commit e13f2b5
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 e13f2b5

Please sign in to comment.