Page MenuHomePhorge

matrix-sticker-pack-source.hpp
No OneTemporary

Size
730 B
Referenced Files
None
Subscribers
None

matrix-sticker-pack-source.hpp

/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2024 tusooa <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#pragma once
#include <kazv-defs.hpp>
#include <base/event.hpp>
struct MatrixStickerPackSource
{
enum Source
{
AccountData,
RoomState,
};
Source source;
std::string eventType;
Kazv::Event event;
/// the room id, only applicable when source is RoomState
std::string roomId;
/// the state key, only applicable when source is RoomState
std::string stateKey;
};
bool operator==(const MatrixStickerPackSource &a, const MatrixStickerPackSource &b);
bool operator!=(const MatrixStickerPackSource &a, const MatrixStickerPackSource &b);

File Metadata

Mime Type
text/x-c
Expires
Fri, Nov 22, 9:32 PM (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38708
Default Alt Text
matrix-sticker-pack-source.hpp (730 B)

Event Timeline