diff options
Diffstat (limited to 'lib/eventitem.h')
-rw-r--r-- | lib/eventitem.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/eventitem.h b/lib/eventitem.h index 6bec5a7f..5f1d10c9 100644 --- a/lib/eventitem.h +++ b/lib/eventitem.h @@ -98,6 +98,13 @@ namespace QMatrixClient : nullptr; } + template<> + inline const CallEventBase* EventItemBase::viewAs<CallEventBase>() const + { + return evt->isCallEvent() ? weakPtrCast<const CallEventBase>(evt) + : nullptr; + } + class PendingEventItem : public EventItemBase { Q_GADGET |