5858: Modification of the event send according to coordinate type

This commit is contained in:
MaximeE
2022-03-31 16:52:16 +02:00
parent 3d58e94e6b
commit af9a524273
11 changed files with 71 additions and 29 deletions
@@ -21,6 +21,7 @@
#import "MXKDataSource.h"
#import "MXKRoomBubbleCellDataStoring.h"
#import "MXKEventFormatter.h"
#import "MXEventContentLocation.h"
@class MXKQueuedEvent;
@@ -614,6 +615,7 @@ extern NSString *const kMXKRoomDataSourceTimelineErrorErrorKey;
@param latitude the location's latitude
@param longitude the location's longitude
@param description an optional description
@param assetType the location's type
@param success A block object called when the operation succeeds. It returns
the event id of the event generated on the homeserver
@param failure A block object called when the operation fails.
@@ -621,6 +623,7 @@ extern NSString *const kMXKRoomDataSourceTimelineErrorErrorKey;
- (void)sendLocationWithLatitude:(double)latitude
longitude:(double)longitude
description:(NSString *)description
coordinateType:(MXEventAssetType)coordinateType
success:(void (^)(NSString *))success
failure:(void (^)(NSError *))failure;