mirror of
https://github.com/thelounge/thelounge
synced 2024-11-15 00:37:13 +00:00
Merge pull request #1773 from thelounge/astorije/fix-default-from
Fix default value given to `Msg.from`
This commit is contained in:
commit
bdbdb69f02
3 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
{{#if from}}
|
{{#if from.nick}}
|
||||||
{{> ../user_name from}}
|
{{> ../user_name from}}
|
||||||
has changed the topic to:
|
has changed the topic to:
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{{tz time}}
|
{{tz time}}
|
||||||
</span>
|
</span>
|
||||||
<span class="from">
|
<span class="from">
|
||||||
{{#if from}}
|
{{#if from.nick}}
|
||||||
{{> user_name from}}
|
{{> user_name from}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -7,7 +7,7 @@ var id = 0;
|
||||||
class Msg {
|
class Msg {
|
||||||
constructor(attr) {
|
constructor(attr) {
|
||||||
_.defaults(this, attr, {
|
_.defaults(this, attr, {
|
||||||
from: "",
|
from: {},
|
||||||
id: id++,
|
id: id++,
|
||||||
previews: [],
|
previews: [],
|
||||||
text: "",
|
text: "",
|
||||||
|
|
Loading…
Reference in a new issue