mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
Handle TOPIC in State.handleMessage
This commit is contained in:
parent
30a345298f
commit
04362644bf
2 changed files with 4 additions and 3 deletions
|
@ -636,9 +636,6 @@ export default class App extends Component {
|
|||
break;
|
||||
case "TOPIC":
|
||||
var channel = msg.params[0];
|
||||
var topic = msg.params[1];
|
||||
|
||||
this.setBufferState({ server: serverID, name: channel }, { topic });
|
||||
this.addMessage(serverID, channel, msg);
|
||||
break;
|
||||
case "INVITE":
|
||||
|
|
4
state.js
4
state.js
|
@ -339,6 +339,10 @@ export const State = {
|
|||
var who = { ...buf.who, away: !!awayMessage };
|
||||
return { who };
|
||||
});
|
||||
case "TOPIC":
|
||||
var channel = msg.params[0];
|
||||
var topic = msg.params[1];
|
||||
return updateBuffer(channel, { topic });
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue