You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Enable forwarding static locations (#8553)
* enable forwarding for location events Signed-off-by: Kerry Archibald <kerrya@element.io> * allow forwarding of static locations Signed-off-by: Kerry Archibald <kerrya@element.io> * add comment Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
@ -16,14 +16,14 @@ limitations under the License.
|
||||
|
||||
import { LocationAssetType, M_LOCATION } from "matrix-js-sdk/src/@types/location";
|
||||
import { makeLocationContent } from "matrix-js-sdk/src/content-helpers";
|
||||
import { MatrixEvent } from "matrix-js-sdk/src/matrix";
|
||||
import { MatrixEvent, EventType } from "matrix-js-sdk/src/matrix";
|
||||
|
||||
let id = 1;
|
||||
export const makeLegacyLocationEvent = (geoUri: string): MatrixEvent => {
|
||||
return new MatrixEvent(
|
||||
{
|
||||
"event_id": `$${++id}`,
|
||||
"type": M_LOCATION.name,
|
||||
"type": EventType.RoomMessage,
|
||||
"content": {
|
||||
"body": "Something about where I am",
|
||||
"msgtype": "m.location",
|
||||
|
Reference in New Issue
Block a user