diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2021-06-11 20:46:57 -0400 |
---|---|---|
committer | Loren Burkholder <computersemiexpert@outlook.com> | 2021-07-20 21:47:22 -0400 |
commit | a176de5f11f11bb3dad6cb8ea71a3b5edd6f27f4 (patch) | |
tree | e5c3029a89923cf2d67bd981432f9e61c0b9480f /src/timeline/TimelineModel.cpp | |
parent | Get member info loading working (diff) | |
download | nheko-a176de5f11f11bb3dad6cb8ea71a3b5edd6f27f4.tar.xz |
Make sure to use the default room id if none is specified
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r-- | src/timeline/TimelineModel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index 2127801c..ebbca6f4 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -1077,11 +1077,11 @@ TimelineModel::openRoomSettings(QString room_id) } void -TimelineModel::openInviteUsers(QString room_id) +TimelineModel::openInviteUsers(QString roomId) { InviteesModel *model = new InviteesModel{this}; - connect(model, &InviteesModel::accept, this, [this, model, room_id]() { - manager_->inviteUsers(room_id, model->mxids()); + connect(model, &InviteesModel::accept, this, [this, model, roomId]() { + manager_->inviteUsers(roomId == QString() ? room_id_ : roomId, model->mxids()); }); openInviteUsersDialog(model); } |