ObjMatrix  Check-in [08a585424a]

Overview
Comment:Fix warnings
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 08a585424af83bb8327987ff98917d30525ce0fd43536f413933df109b173def
User & Date: js on 2024-08-07 20:12:55
Other Links: manifest | tags
Context
2024-08-07
20:14
ObjMatrix.oc.in: Fix missing @ check-in: bec8b4dab3 user: js tags: trunk
20:12
Fix warnings check-in: 08a585424a user: js tags: trunk
20:11
Migrate build system to Meson check-in: e20d96017a user: js tags: trunk
Changes

Modified src/MTXClient.m from [7d5f2c5ba4] to [37d1c913cf].

416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
	}];

	objc_autoreleasePoolPop(pool);
}

- (void)sendMessage: (OFString *)message
	     roomID: (OFString *)roomID
	      block: (MTXClientResponseBlock)block;
{
	void *pool = objc_autoreleasePoolPush();
	OFString *path = [OFString stringWithFormat:
	    @"/_matrix/client/r0/rooms/%@/send/m.room.message", roomID];
	MTXRequest *request = [self requestWithPath: path];
	request.method = OFHTTPRequestMethodPost;
	request.body = @{







|







416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
	}];

	objc_autoreleasePoolPop(pool);
}

- (void)sendMessage: (OFString *)message
	     roomID: (OFString *)roomID
	      block: (MTXClientResponseBlock)block
{
	void *pool = objc_autoreleasePoolPush();
	OFString *path = [OFString stringWithFormat:
	    @"/_matrix/client/r0/rooms/%@/send/m.room.message", roomID];
	MTXRequest *request = [self requestWithPath: path];
	request.method = OFHTTPRequestMethodPost;
	request.body = @{

Modified tests/Tests.m from [4142bbed4c] to [bb6163e59a].

33
34
35
36
37
38
39

40
41
42
43
44
45
46
47
{
	MTXClient *_client;
	OFString *_roomID;
}

- (void)applicationDidFinishLaunching: (OFNotification *)notification
{

	__auto_type environment = OFApplication.environment;
	if (environment[@"OBJMATRIX_USER"] == nil ||
	    environment[@"OBJMATRIX_PASS"] == nil ||
	    environment[@"OBJMATRIX_HS"] == nil) {
		[OFStdErr writeString: @"Please set OBJMATRIX_USER, "
				       @"OBJMATRIX_PASS and OBJMATRIX_HS in "
				       @"the environment!\n"];
		[OFApplication terminateWithStatus: 1];







>
|







33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
	MTXClient *_client;
	OFString *_roomID;
}

- (void)applicationDidFinishLaunching: (OFNotification *)notification
{
	OFDictionary<OFString *, OFString *> *environment =
	    OFApplication.environment;
	if (environment[@"OBJMATRIX_USER"] == nil ||
	    environment[@"OBJMATRIX_PASS"] == nil ||
	    environment[@"OBJMATRIX_HS"] == nil) {
		[OFStdErr writeString: @"Please set OBJMATRIX_USER, "
				       @"OBJMATRIX_PASS and OBJMATRIX_HS in "
				       @"the environment!\n"];
		[OFApplication terminateWithStatus: 1];