mirror of
https://github.com/thelounge/thelounge
synced 2024-11-29 23:40:28 +00:00
13 lines
318 B
JavaScript
13 lines
318 B
JavaScript
import socket from "../socket";
|
|
import store from "../store";
|
|
|
|
socket.on("search:results", (response) => {
|
|
store.commit("messageSearchInProgress", false);
|
|
|
|
if (store.state.messageSearchResults) {
|
|
store.commit("addMessageSearchResults", response);
|
|
return;
|
|
}
|
|
|
|
store.commit("messageSearchResults", response);
|
|
});
|