Merge pull request #1773 from thelounge/astorije/fix-default-from
Fix default value given to `Msg.from`
This commit is contained in:
commit
bdbdb69f02
@ -1,4 +1,4 @@
|
||||
{{#if from}}
|
||||
{{#if from.nick}}
|
||||
{{> ../user_name from}}
|
||||
has changed the topic to:
|
||||
{{else}}
|
||||
|
@ -3,7 +3,7 @@
|
||||
{{tz time}}
|
||||
</span>
|
||||
<span class="from">
|
||||
{{#if from}}
|
||||
{{#if from.nick}}
|
||||
{{> user_name from}}
|
||||
{{/if}}
|
||||
</span>
|
||||
|
@ -7,7 +7,7 @@ var id = 0;
|
||||
class Msg {
|
||||
constructor(attr) {
|
||||
_.defaults(this, attr, {
|
||||
from: "",
|
||||
from: {},
|
||||
id: id++,
|
||||
previews: [],
|
||||
text: "",
|
||||
|
Loading…
Reference in New Issue
Block a user