Intercept and create matrix.to URLs within the app #547

This commit is contained in:
manuroe
2016-08-29 11:57:01 +02:00
parent 260a1e7f69
commit acdc01c3c2
4 changed files with 35 additions and 20 deletions
@@ -686,12 +686,8 @@ NSString *const kRoomSettingsAdvancedCellViewIdentifier = @"kRoomSettingsAdvance
__strong __typeof(weakSelf)strongSelf = weakSelf;
strongSelf->currentAlert = nil;
// Create a room url that is common to all Vector.im clients
NSString *roomURL = [NSString stringWithFormat:@"%@/#/room/%@",
[Tools webAppUrl],
roomAliasLabel.text];
[[UIPasteboard generalPasteboard] setString:roomURL];
// Create a matrix.to permalink to the room
[[UIPasteboard generalPasteboard] setString:[MXTools permalinkToRoom:roomAliasLabel.text]];
}
}];