Commit 9a9f2158 authored by Julian Sparber's avatar Julian Sparber

remove " (IRC)" from the end of suggested username for mentions, fix #126

parent 101c7cdf
......@@ -2587,7 +2587,7 @@ 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();
let alias = &m.alias.clone().unwrap_or_default().trim_right_matches(" (IRC)").to_owned();
let uid = &m.uid.clone().to_lowercase()[1..];
if alias.to_lowercase().starts_with(&w) || uid.starts_with(&w) {
let widget;
......
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