aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roomtombstoneevent.cpp
blob: 163e1d3a53f97b2e08b42a82bdf4a1e0259e14e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/******************************************************************************
 * SPDX-FileCopyrightText: 2019 QMatrixClient project
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

#include "roomtombstoneevent.h"

using namespace Quotient;

QString RoomTombstoneEvent::serverMessage() const
{
    return fromJson<QString>(contentJson()["body"_ls]);
}

QString RoomTombstoneEvent::successorRoomId() const
{
    return fromJson<QString>(contentJson()["replacement_room"_ls]);
}