Commit 798c6d31 authored by Julian Sparber's avatar Julian Sparber

match also uid for mentions

parent 3caf5a00
......@@ -2597,8 +2597,9 @@ impl AppOp {
if let Some(r) = self.rooms.get(&aroom) {
let mut count = 0;
for (_, m) in r.members.iter() {
let alias = m.alias.clone().unwrap_or_default();
if alias.to_lowercase().starts_with(&w) {
let alias = m.alias.clone().unwrap_or_default().to_lowercase();
let uid = &m.uid.clone().to_lowercase()[1..];
if alias.starts_with(&w) || uid.starts_with(&w) {
let widget;
{
let mb = widgets::MemberBox::new(&m, &self);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment