@@ -30,13 +30,11 @@ import dis from './dispatcher/dispatcher';
3030import { Action } from './dispatcher/actions' ;
3131import { ViewUserPayload } from './dispatcher/payloads/ViewUserPayload' ;
3232import { ViewRoomPayload } from "./dispatcher/payloads/ViewRoomPayload" ;
33- import { showGroupReplacedWithSpacesDialog } from "./group_helpers" ;
3433
3534export enum Type {
3635 URL = "url" ,
3736 UserId = "userid" ,
3837 RoomAlias = "roomalias" ,
39- GroupId = "groupid" ,
4038}
4139
4240// Linkify stuff doesn't type scanner/parser/utils properly :/
@@ -115,11 +113,6 @@ function onUserClick(event: MouseEvent, userId: string) {
115113 } ) ;
116114}
117115
118- function onGroupClick ( event : MouseEvent , groupId : string ) {
119- event . preventDefault ( ) ;
120- showGroupReplacedWithSpacesDialog ( groupId ) ;
121- }
122-
123116function onAliasClick ( event : MouseEvent , roomAlias : string ) {
124117 event . preventDefault ( ) ;
125118 dis . dispatch < ViewRoomPayload > ( {
@@ -192,23 +185,13 @@ export const options = {
192185 onAliasClick ( e , alias ) ;
193186 } ,
194187 } ;
195-
196- case Type . GroupId :
197- return {
198- // @ts -ignore see https://linkify.js.org/docs/options.html
199- click : function ( e : MouseEvent ) {
200- const groupId = parsePermalink ( href ) . groupId ;
201- onGroupClick ( e , groupId ) ;
202- } ,
203- } ;
204188 }
205189 } ,
206190
207191 formatHref : function ( href : string , type : Type | string ) : string {
208192 switch ( type ) {
209193 case Type . RoomAlias :
210194 case Type . UserId :
211- case Type . GroupId :
212195 default : {
213196 return tryTransformEntityToPermalink ( href ) ;
214197 }
@@ -255,17 +238,6 @@ registerPlugin(Type.RoomAlias, ({ scanner, parser, utils }) => {
255238 } ) ;
256239} ) ;
257240
258- registerPlugin ( Type . GroupId , ( { scanner, parser, utils } ) => {
259- const token = scanner . tokens . PLUS as '+' ;
260- matrixOpaqueIdLinkifyParser ( {
261- scanner,
262- parser,
263- utils,
264- token,
265- name : Type . GroupId ,
266- } ) ;
267- } ) ;
268-
269241registerPlugin ( Type . UserId , ( { scanner, parser, utils } ) => {
270242 const token = scanner . tokens . AT as '@' ;
271243 matrixOpaqueIdLinkifyParser ( {
0 commit comments