when expanding mentions in case p or e is not found then ..

they are mentioned as the id ( p prefixed with @ and e prefixed with #)
This commit is contained in:
Vishal 2022-12-28 15:06:53 +05:30
parent 5071c1f1e6
commit 1bf4698ee4

View File

@ -371,8 +371,28 @@ class EventData {
return quote;
}
}
String tag = "";
switch(tags[n][0]) {
case "p":
tag = "@";
break;
case "e":
tag = "#";
break;
case "%": // something else for future
tag = "%";
break;
default:
tag = "@";
}
return tag+mentionedId;
}
}
return mentionTag;
}
if( gDebug > 0) printWarning("In replaceMentions returning nothing");