mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-06 07:57:42 +02:00
Remove access token from Vector logs.
This commit is contained in:
+29
-24
@@ -1076,30 +1076,35 @@
|
||||
visibility:kMXRoomVisibilityPrivate
|
||||
roomAlias:nil
|
||||
topic:nil
|
||||
success:^(MXRoom *room)
|
||||
{
|
||||
// invite the other user only if it is defined and not onself
|
||||
if (userId && ![mxSession.myUser.userId isEqualToString:userId])
|
||||
{
|
||||
// add the user
|
||||
[room inviteUser:userId success:^{
|
||||
} failure:^(NSError *error)
|
||||
{
|
||||
NSLog(@"[AppDelegate] %@ invitation failed (roomId: %@): %@", userId, room.state.roomId, error);
|
||||
//Alert user
|
||||
[self showErrorAsAlert:error];
|
||||
}];
|
||||
}
|
||||
|
||||
// Open created room
|
||||
[self showRoom:room.state.roomId withMatrixSession:mxSession];
|
||||
|
||||
} failure:^(NSError *error)
|
||||
{
|
||||
NSLog(@"[AppDelegate] Create room failed: %@", error);
|
||||
//Alert user
|
||||
[self showErrorAsAlert:error];
|
||||
}];
|
||||
success:^(MXRoom *room) {
|
||||
|
||||
// invite the other user only if it is defined and not onself
|
||||
if (userId && ![mxSession.myUser.userId isEqualToString:userId])
|
||||
{
|
||||
// add the user
|
||||
[room inviteUser:userId
|
||||
success:^{
|
||||
}
|
||||
failure:^(NSError *error) {
|
||||
|
||||
NSLog(@"[AppDelegate] %@ invitation failed (roomId: %@)", userId, room.state.roomId);
|
||||
//Alert user
|
||||
[self showErrorAsAlert:error];
|
||||
|
||||
}];
|
||||
}
|
||||
|
||||
// Open created room
|
||||
[self showRoom:room.state.roomId withMatrixSession:mxSession];
|
||||
|
||||
}
|
||||
failure:^(NSError *error) {
|
||||
|
||||
NSLog(@"[AppDelegate] Create room failed");
|
||||
//Alert user
|
||||
[self showErrorAsAlert:error];
|
||||
|
||||
}];
|
||||
}
|
||||
}
|
||||
}];
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
|
||||
#import "PublicRoomTableViewCell.h"
|
||||
|
||||
#import "AppDelegate.h"
|
||||
|
||||
#pragma mark - Constants definitions
|
||||
|
||||
// Time in seconds from which public rooms data is considered as obsolete
|
||||
@@ -126,12 +128,15 @@ double const kPublicRoomsDirectoryDataExpiration = 10;
|
||||
[self setState:MXKDataSourceStateReady];
|
||||
|
||||
} failure:^(NSError *error) {
|
||||
NSLog(@"[PublicRoomsDirectoryDataSource] Failed to fecth public rooms. Error: %@", error);
|
||||
NSLog(@"[PublicRoomsDirectoryDataSource] Failed to fecth public rooms.");
|
||||
|
||||
[self setState:MXKDataSourceStateFailed];
|
||||
|
||||
// Reset the refresh date so that the user can retry the request by changing the search text input content
|
||||
lastRefreshDate = nil;
|
||||
|
||||
// Alert user
|
||||
[[AppDelegate theDelegate] showErrorAsAlert:error];
|
||||
}];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -754,7 +754,7 @@
|
||||
|
||||
} failure:^(NSError *error) {
|
||||
|
||||
NSLog(@"[RecentsDataSource] Failed to update the tag %@ of room (%@) failed: %@", dstRoomTag, room.state.roomId, error);
|
||||
NSLog(@"[RecentsDataSource] Failed to update the tag %@ of room (%@) failed", dstRoomTag, room.state.roomId);
|
||||
|
||||
if (moveFailure)
|
||||
{
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
|
||||
[self stopActivityIndicator];
|
||||
|
||||
NSLog(@"[DirectoryVC] Failed to join public room (%@): %@", publicRoom.displayname, error);
|
||||
NSLog(@"[DirectoryVC] Failed to join public room (%@)", publicRoom.displayname);
|
||||
|
||||
// Alert user
|
||||
[[AppDelegate theDelegate] showErrorAsAlert:error];
|
||||
|
||||
@@ -245,7 +245,7 @@
|
||||
[room leave:^{
|
||||
[self.recentsTableView reloadData];
|
||||
} failure:^(NSError *error) {
|
||||
NSLog(@"[RecentsViewController] Failed to reject an invited room (%@) failed: %@", room.state.roomId, error);
|
||||
NSLog(@"[RecentsViewController] Failed to reject an invited room (%@) failed", room.state.roomId);
|
||||
}];
|
||||
|
||||
};
|
||||
|
||||
@@ -208,7 +208,7 @@
|
||||
|
||||
[room setAvatar:url success:nil failure:^(NSError *error) {
|
||||
|
||||
NSLog(@"[RoomCreation] Failed to update the room avatar %@", error);
|
||||
NSLog(@"[RoomCreation] Failed to update the room avatar");
|
||||
// Alert user
|
||||
[[AppDelegate theDelegate] showErrorAsAlert:error];
|
||||
|
||||
@@ -216,7 +216,7 @@
|
||||
|
||||
} failure:^(NSError *error) {
|
||||
|
||||
NSLog(@"[RoomCreation] Failed to upload image: %@", error);
|
||||
NSLog(@"[RoomCreation] Failed to upload image");
|
||||
// Alert user
|
||||
[[AppDelegate theDelegate] showErrorAsAlert:error];
|
||||
|
||||
@@ -233,7 +233,7 @@
|
||||
|
||||
} failure:^(NSError *error) {
|
||||
|
||||
NSLog(@"[RoomCreation] %@ invitation failed (roomId: %@): %@", userId, room.state.roomId, error);
|
||||
NSLog(@"[RoomCreation] %@ invitation failed (roomId: %@)", userId, room.state.roomId);
|
||||
|
||||
// Alert user
|
||||
[[AppDelegate theDelegate] showErrorAsAlert:error];
|
||||
@@ -254,7 +254,7 @@
|
||||
roomCreationRequest = nil;
|
||||
[self stopActivityIndicator];
|
||||
|
||||
NSLog(@"[RoomCreation] Create room (%@ %@) failed: %@", _roomCreationInputs.roomName, _roomCreationInputs.roomAlias, error);
|
||||
NSLog(@"[RoomCreation] Create room (%@ %@) failed", _roomCreationInputs.roomName, _roomCreationInputs.roomAlias);
|
||||
|
||||
// Alert user
|
||||
[[AppDelegate theDelegate] showErrorAsAlert:error];
|
||||
|
||||
@@ -735,7 +735,7 @@
|
||||
|
||||
[self removePendingActionMask];
|
||||
|
||||
NSLog(@"[RoomParticipantsVC] Invite be email %@ failed: %@", participantId, error);
|
||||
NSLog(@"[RoomParticipantsVC] Invite be email %@ failed", participantId);
|
||||
// Alert user
|
||||
[[AppDelegate theDelegate] showErrorAsAlert:error];
|
||||
}];
|
||||
@@ -754,7 +754,7 @@
|
||||
|
||||
[self removePendingActionMask];
|
||||
|
||||
NSLog(@"[RoomParticipantsVC] Invite %@ failed: %@", participantId, error);
|
||||
NSLog(@"[RoomParticipantsVC] Invite %@ failed", participantId);
|
||||
// Alert user
|
||||
[[AppDelegate theDelegate] showErrorAsAlert:error];
|
||||
}];
|
||||
@@ -789,7 +789,7 @@
|
||||
|
||||
[self removePendingActionMask];
|
||||
|
||||
NSLog(@"[RoomParticipantsVC] Invite %@ failed: %@", participantId, error);
|
||||
NSLog(@"[RoomParticipantsVC] Invite %@ failed", participantId);
|
||||
// Alert user
|
||||
[[AppDelegate theDelegate] showErrorAsAlert:error];
|
||||
}];
|
||||
@@ -887,7 +887,7 @@
|
||||
} failure:^(NSError *error) {
|
||||
|
||||
[strongSelf removePendingActionMask];
|
||||
NSLog(@"[RoomParticipantsVC] Leave room %@ failed: %@", strongSelf.mxRoom.state.roomId, error);
|
||||
NSLog(@"[RoomParticipantsVC] Leave room %@ failed", strongSelf.mxRoom.state.roomId);
|
||||
// Alert user
|
||||
[[AppDelegate theDelegate] showErrorAsAlert:error];
|
||||
|
||||
@@ -947,7 +947,7 @@
|
||||
} failure:^(NSError *error) {
|
||||
|
||||
[strongSelf removePendingActionMask];
|
||||
NSLog(@"[RoomParticipantsVC] Kick %@ failed: %@", memberUserId, error);
|
||||
NSLog(@"[RoomParticipantsVC] Kick %@ failed", memberUserId);
|
||||
// Alert user
|
||||
[[AppDelegate theDelegate] showErrorAsAlert:error];
|
||||
|
||||
|
||||
@@ -354,7 +354,7 @@
|
||||
[self onSave:nil];
|
||||
} failure:^(NSError *error)
|
||||
{
|
||||
NSLog(@"[Vector RoomSettingsViewController] Failed to upload image: %@", error);
|
||||
NSLog(@"[RoomSettingsViewController] Failed to upload image");
|
||||
[updatedItemsDict removeObjectForKey:@"ROOM_SECTION_PHOTO"];
|
||||
[self onSave:nil];
|
||||
}];
|
||||
@@ -376,7 +376,7 @@
|
||||
|
||||
} failure:^(NSError *error) {
|
||||
|
||||
NSLog(@"[Vector RoomSettingsViewController] Failed to update the room avatar %@", error);
|
||||
NSLog(@"[RoomSettingsViewController] Failed to update the room avatar");
|
||||
|
||||
__strong __typeof(weakSelf)strongSelf = weakSelf;
|
||||
[strongSelf->updatedItemsDict removeObjectForKey:@"ROOM_SECTION_PHOTO_URL"];
|
||||
@@ -414,7 +414,7 @@
|
||||
|
||||
});
|
||||
|
||||
NSLog(@"[onDone] Rename room failed: %@", error);
|
||||
NSLog(@"[onDone] Rename room failed");
|
||||
}];
|
||||
|
||||
return;
|
||||
@@ -448,7 +448,7 @@
|
||||
|
||||
});
|
||||
|
||||
NSLog(@"[onDone] Rename topic failed: %@", error);
|
||||
NSLog(@"[onDone] Rename topic failed");
|
||||
}];
|
||||
|
||||
return;
|
||||
|
||||
@@ -348,7 +348,7 @@
|
||||
[[AppDelegate theDelegate] showRoom:room.state.roomId withMatrixSession:self.mainSession];
|
||||
} failure:^(NSError *error)
|
||||
{
|
||||
NSLog(@"[Vector RoomVC] Join roomAlias (%@) failed: %@", roomAlias, error);
|
||||
NSLog(@"[Vector RoomVC] Join roomAlias (%@) failed", roomAlias);
|
||||
//Alert user
|
||||
[[AppDelegate theDelegate] showErrorAsAlert:error];
|
||||
}];
|
||||
@@ -842,7 +842,7 @@
|
||||
__strong __typeof(weakSelf)strongSelf = weakSelf;
|
||||
[strongSelf stopActivityIndicator];
|
||||
|
||||
NSLog(@"[Vector RoomVC] Redact event (%@) failed: %@", selectedEvent.eventId, error);
|
||||
NSLog(@"[Vector RoomVC] Redact event (%@) failed", selectedEvent.eventId);
|
||||
//Alert user
|
||||
[[AppDelegate theDelegate] showErrorAsAlert:error];
|
||||
|
||||
|
||||
@@ -896,7 +896,7 @@
|
||||
|
||||
} failure:^(NSError *error) {
|
||||
|
||||
NSLog(@"[Vector Settings View Controller] Failed to set displayName: %@", error);
|
||||
NSLog(@"[Vector Settings View Controller] Failed to set displayName");
|
||||
__strong __typeof(weakSelf)strongSelf = weakSelf;
|
||||
|
||||
// Alert user
|
||||
@@ -943,7 +943,7 @@
|
||||
[self onSave:nil];
|
||||
} failure:^(NSError *error)
|
||||
{
|
||||
NSLog(@"[Vector SettingsViewController] Failed to upload image: %@", error);
|
||||
NSLog(@"[Vector SettingsViewController] Failed to upload image");
|
||||
uploadedAvatarURL = nil;
|
||||
newAvatarImage = nil;
|
||||
}];
|
||||
@@ -959,7 +959,7 @@
|
||||
[strongSelf onSave:nil];
|
||||
}
|
||||
failure:^(NSError *error) {
|
||||
NSLog(@"[Vector SettingsViewController] Failed to set avatar url: %@", error);
|
||||
NSLog(@"[Vector SettingsViewController] Failed to set avatar url");
|
||||
|
||||
__strong __typeof(weakSelf)strongSelf = weakSelf;
|
||||
strongSelf->uploadedAvatarURL = nil;
|
||||
|
||||
Reference in New Issue
Block a user