Fix "tarfindId" sed rename mistakes
This commit is contained in:
@@ -109,7 +109,7 @@ function onTimelineEventReceived(
|
||||
"isLocalEcho": is_local_echo,
|
||||
"showNameLine": show_name_line,
|
||||
"translatable": translatable,
|
||||
"tarfindId": target_user_id,
|
||||
"targetUserId": target_user_id,
|
||||
}
|
||||
|
||||
if (is_local_echo) {
|
||||
|
@@ -77,9 +77,9 @@ function translatedEventContent(ev) {
|
||||
var text = ev.content.replace("%S", coloredNameHtml(name, ev.senderId))
|
||||
|
||||
// %T → target (event state_key) display name
|
||||
if (ev.tarfindId) {
|
||||
var tname = users.find(ev.tarfindId).displayName
|
||||
text = text.replace("%T", coloredNameHtml(tname, ev.tarfindId))
|
||||
if (ev.targetUserId) {
|
||||
var tname = users.find(ev.targetUserId).displayName
|
||||
text = text.replace("%T", coloredNameHtml(tname, ev.targetUserId))
|
||||
}
|
||||
|
||||
text = qsTr(text)
|
||||
|
Reference in New Issue
Block a user