Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Jan 11, 2024
1 parent 613069b commit 3eebb70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/permalinks/Permalinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import isIp from "is-ip";
import { isIP } from "is-ip";
import * as utils from "matrix-js-sdk/src/utils";
import { Room, MatrixClient, RoomStateEvent, EventType } from "matrix-js-sdk/src/matrix";
import { logger } from "matrix-js-sdk/src/logger";
Expand Down Expand Up @@ -470,7 +470,7 @@ function isHostnameIpAddress(hostname: string): boolean {
hostname = hostname.substring(1, hostname.length - 1);
}

return isIp(hostname);
return isIP(hostname);
}

export const calculateRoomVia = (room: Room): string[] => {
Expand Down

0 comments on commit 3eebb70

Please sign in to comment.