mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 05:36:57 +02:00
Option to autocomplete nicknames from their member info page
https://github.com/vector-im/vector-ios/issues/317
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
#import "SimpleRoomTitleView.h"
|
||||
#import "PreviewRoomTitleView.h"
|
||||
|
||||
#import "RoomParticipantsViewController.h"
|
||||
#import "RoomMemberDetailsViewController.h"
|
||||
|
||||
#import "SegmentedViewController.h"
|
||||
@@ -1539,6 +1538,8 @@
|
||||
[titles addObject: NSLocalizedStringFromTable(@"room_details_people", @"Vector", nil)];
|
||||
|
||||
RoomParticipantsViewController* participantsViewController = [[RoomParticipantsViewController alloc] init];
|
||||
participantsViewController.delegate = self;
|
||||
participantsViewController.enableMention = YES;
|
||||
participantsViewController.mxRoom = [session roomWithRoomId:roomid];
|
||||
participantsViewController.segmentedViewController = segmentedViewController;
|
||||
[viewControllers addObject:participantsViewController];
|
||||
@@ -1576,10 +1577,10 @@
|
||||
if (selectedRoomMember)
|
||||
{
|
||||
RoomMemberDetailsViewController *memberViewController = pushedViewController;
|
||||
// Set rageShake handler
|
||||
memberViewController.rageShakeManager = [RageShakeManager sharedManager];
|
||||
// Set delegate to handle start chat option
|
||||
memberViewController.delegate = [AppDelegate theDelegate];
|
||||
|
||||
// Set delegate to handle action on member (start chat, memtion)
|
||||
memberViewController.delegate = self;
|
||||
memberViewController.enableMention = YES;
|
||||
|
||||
[memberViewController displayRoomMember:selectedRoomMember withMatrixRoom:self.roomDataSource.room];
|
||||
|
||||
@@ -1640,6 +1641,25 @@
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - RoomParticipantsViewControllerDelegate
|
||||
|
||||
- (void)roomParticipantsViewController:(RoomParticipantsViewController *)roomParticipantsViewController mention:(MXRoomMember*)member
|
||||
{
|
||||
[self mention:member];
|
||||
}
|
||||
|
||||
#pragma mark - MXKRoomMemberDetailsViewControllerDelegate
|
||||
|
||||
- (void)roomMemberDetailsViewController:(MXKRoomMemberDetailsViewController *)roomMemberDetailsViewController startChatWithMemberId:(NSString *)matrixId completion:(void (^)(void))completion
|
||||
{
|
||||
[[AppDelegate theDelegate] startPrivateOneToOneRoomWithUserId:matrixId completion:completion];
|
||||
}
|
||||
|
||||
- (void)roomMemberDetailsViewController:(MXKRoomMemberDetailsViewController *)roomMemberDetailsViewController mention:(MXRoomMember*)member
|
||||
{
|
||||
[self mention:member];
|
||||
}
|
||||
|
||||
#pragma mark - Action
|
||||
|
||||
- (IBAction)onButtonPressed:(id)sender
|
||||
|
||||
Reference in New Issue
Block a user