2019-12-31 16:21:34 +00:00
|
|
|
import socket from "../socket";
|
2022-06-19 00:25:21 +00:00
|
|
|
import {store} from "../store";
|
2019-12-31 16:21:34 +00:00
|
|
|
|
|
|
|
socket.on("search:results", (response) => {
|
|
|
|
store.commit("messageSearchInProgress", false);
|
2020-04-23 16:50:45 +00:00
|
|
|
|
|
|
|
if (store.state.messageSearchResults) {
|
|
|
|
store.commit("addMessageSearchResults", response);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-12-31 16:21:34 +00:00
|
|
|
store.commit("messageSearchResults", response);
|
|
|
|
});
|