Revert "Revert "Implement sending location messages""

This reverts commit 52dafbb6c8.
This commit is contained in:
Tobias Fella
2023-04-09 22:23:03 +02:00
parent 516b1cff88
commit 47a738a703
5 changed files with 132 additions and 1 deletions

View File

@@ -901,4 +901,13 @@ public Q_SLOTS:
* This will delete all messages by that user in this room that are currently loaded.
*/
void deleteMessagesByUser(const QString &user, const QString &reason);
/**
* @brief Sends a location to a room
* The event is sent in the migration format as specified in MSC3488
* @param lat latitude
* @param lon longitude
* @param description description for the location
*/
void sendLocation(float lat, float lon, const QString &description);
};