Changeset View
Changeset View
Standalone View
Standalone View
src/matrix-sdk.cpp
| Show First 20 Lines • Show All 608 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| // Do not notify own event | // Do not notify own event | ||||
| if (event->sender() == userId()) { | if (event->sender() == userId()) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| return m_d->notificationHandler.handleNotification(event->underlyingEvent()).shouldNotify; | return m_d->notificationHandler.handleNotification(event->underlyingEvent()).shouldNotify; | ||||
| } | } | ||||
| bool MatrixSdk::shouldPlaySound(MatrixEvent *event) const | |||||
| { | |||||
| return m_d->notificationHandler.handleNotification(event->underlyingEvent()).sound.has_value(); | |||||
| } | |||||
| MatrixStickerPackList *MatrixSdk::stickerPackList() const | MatrixStickerPackList *MatrixSdk::stickerPackList() const | ||||
| { | { | ||||
| return new MatrixStickerPackList(m_d->clientOnSecondaryRoot); | return new MatrixStickerPackList(m_d->clientOnSecondaryRoot); | ||||
| } | } | ||||
| MatrixPromise *MatrixSdk::updateStickerPack(MatrixStickerPackSource source) | MatrixPromise *MatrixSdk::updateStickerPack(MatrixStickerPackSource source) | ||||
| { | { | ||||
| if (source.source == MatrixStickerPackSource::AccountData) { | if (source.source == MatrixStickerPackSource::AccountData) { | ||||
| Show All 14 Lines | |||||