Ignore service and live location messages in quick replies.
This commit is contained in:
parent
e91b946015
commit
2e0d52f618
@ -538,7 +538,8 @@ unique_ptr<QuickReplyManager::QuickReplyMessage> QuickReplyManager::create_messa
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto content_type = content->get_type();
|
auto content_type = content->get_type();
|
||||||
if (is_expired_message_content(content_type)) {
|
if (is_service_message_content(content_type) || content_type == MessageContentType::LiveLocation ||
|
||||||
|
is_expired_message_content(content_type)) {
|
||||||
LOG(ERROR) << "Receive " << content_type << " from " << source;
|
LOG(ERROR) << "Receive " << content_type << " from " << source;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user