mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 06:06:57 +02:00
Intercept and create matrix.to URLs within the app #547
This commit is contained in:
@@ -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]];
|
||||
}
|
||||
|
||||
}];
|
||||
|
||||
Reference in New Issue
Block a user