Commit Graph

111 Commits (c4d45e87ea251f62f3ffc8c33c916613d256a9b3)

Author SHA1 Message Date
Michael Telatynski 8f3cef84fd Fix upgraderoom slashcommand
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-01 20:58:40 +01:00
Travis Ralston fc66e69c02 Rename RoomPermalinkCreator -> Permalinks due to scope
The file handles more than just a RoomPermalinkCreator, so we should name it accordingly.
2019-09-30 20:39:58 -06:00
Travis Ralston 6656ef112f Rework /join to parse permalinks more safely
They might not be matrix.to anymore, so parse them more correctly.
2019-09-30 16:06:56 -06:00
Michael Telatynski f8b1b36051 Fix copy-paste issue
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-19 09:48:35 +01:00
Michael Telatynski 2632e648b4 Add roomavatar slash command to set avatar of the current room
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-18 16:33:56 +01:00
Bruno Windels 41ca54bb09 /plain command to bypass markdown conversion 2019-09-02 17:44:31 +02:00
J. Ryan Stinnett 8ff0883c22 Add a dialog when inviting via slash command without IS
This adds a dialog to ask how you want to proceed when trying to invite via
email when there is no IS configured.

Fixes https://github.com/vector-im/riot-web/issues/10619
2019-08-30 18:29:07 +01:00
Michael Telatynski f70f983c8c Expose upgrade room permissions in room settings and fix command
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-08-28 12:00:37 +01:00
Michael Telatynski 1e8b304b3c Remove /tint completely and dedup copyright
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-08-06 18:08:17 +01:00
Michael Telatynski ae834f8d05 Split out SlashCommandHelpDialog, group by category and style it
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-08-06 18:03:38 +01:00
Michael Telatynski 2fd371e1dd prune i18n and get rid of /help header
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-08-06 17:07:56 +01:00
Michael Telatynski 734ca0df6e get rid of /tint for now
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-08-06 17:04:02 +01:00
Michael Telatynski e400053b69 s/hasCloseX/hasCloseButton/
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-08-05 10:45:49 +01:00
Michael Telatynski 90a3fedbef Add close button to Slash Commands /help dialog
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-07-29 22:33:56 +01:00
Michael Telatynski d2e2c4edb6 Add help slash command
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-07-29 17:58:34 +01:00
Travis Ralston 38bfe8b1ce
Merge pull request #3161 from matrix-org/travis/fix-via-join
Correctly populate the dispatch for joining a room via servers
2019-07-01 09:47:46 -06:00
Michael Telatynski 77dbc79386 clean up promises properly
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-06-29 07:05:43 +01:00
Travis Ralston e65cc3b189 Correctly populate the dispatch for joining a room via servers
Fixes https://github.com/vector-im/riot-web/issues/9817
2019-06-28 16:26:28 -06:00
Michael Telatynski e8db379fed rename helper method
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-06-27 19:41:29 +01:00
Michael Telatynski cebb2b773f Add /myavatar command
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-06-27 19:38:12 +01:00
Travis Ralston bc5227a191 Fix some source strings noticed as incorrect by translators 2019-05-16 14:35:56 -06:00
Travis Ralston 909354c195
Merge branch 'develop' into t3chguy/cmd_rainbow 2019-05-12 18:51:22 -06:00
Michael Telatynski 9f9a245af1 delint
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-05-12 17:14:30 +01:00
Michael Telatynski 4c8593a91f Add i18n
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-05-12 16:40:27 +01:00
Michael Telatynski 8bd45ce893 add /rainbow and /rainbowme Slash Commands
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-05-12 16:36:43 +01:00
Michael Telatynski 5cb0a81565 Change roomavatar to myroomavatar and roomnick to match, leaving alias
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-05-10 20:28:28 +01:00
Michael Telatynski 92a932158d Command to change avatar for a single room, including upload of mxc res
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-05-09 22:16:51 +01:00
Andrew Morgan b3946c7766 Add period to the end of upgrade notice 2019-04-11 10:55:53 +01:00
Travis Ralston 1a6bebcc1d
Merge pull request #2824 from matrix-org/travis/add-widget-command
Add a command for creating custom widgets without an integration manager
2019-03-26 10:26:59 -06:00
Travis Ralston f61a6104b5
Use m.custom for widget type
As per https://github.com/matrix-org/matrix-doc/issues/1236
2019-03-26 09:23:17 -06:00
Travis Ralston 8cca1bef23 Add a command for creating custom widgets without an integration manager
Fixes https://github.com/vector-im/riot-web/issues/4882
2019-03-24 00:07:00 -06:00
Travis Ralston a34a8bb425 Use leaveRoomChain when leaving a room
Requires https://github.com/matrix-org/matrix-js-sdk/pull/868
Fixes https://github.com/vector-im/riot-web/issues/8539

We don't need to use leaveRoomChain when rejecting invites because we won't have the references needed. This leaves the couple spots where we do actually leave a room, and use the new function for that.
2019-03-22 17:36:54 -06:00
Travis Ralston 7504927ed9 Appease the linter 2019-03-15 16:37:32 -06:00
Travis Ralston 4777f851f8 Update text for /upgraderoom to match suggestions 2019-03-15 16:11:09 -06:00
Travis Ralston fba4b7235f Add a confirmation prompt when upgrading the room via slashcommand
Wording is questionable here, but the idea is to discourage non-power-users from accidentally upgrading their room. They should already be receiving a bunch of warnings if they should consider upgrading in the first place.
2019-03-14 17:37:11 -06:00
Matthew Hodgson e8d7609199
Merge pull request #2660 from chr-1x/add-shrug-command
Add /shrug command
2019-03-05 23:36:59 +00:00
Michael Telatynski 175938f5a0 set membership in case we don't get the ev
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-02-25 22:15:50 +00:00
Michael Telatynski f16b9d76f4 add roomnick SlashCommand
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-02-24 01:36:47 +00:00
Andrew Chronister 250341ec4d Miscellaneous style issues 2019-02-19 21:46:17 -08:00
Andrew Chronister 12c1e82f11 s/var/let 2019-02-19 21:45:16 -08:00
chr 788e40f076 Add /shrug command
Certain popular web-based chat systems support a `/shrug` command which
appends the ¯\\_(ツ)_/¯ text emoticon (kaomoji) to a message. I've often
found myself wishing Riot had something similar, so I decided to add it
myself. (If Riot ever gets a user-extensible /-command system, this will
probably no longer be necessary. But since it doesn't have that, here I
am). Doesn't support markdown / rich text messages because I didn't want
to dig that far into Riot/the SDKs for my first PR; if someone else
would like to add that, by all means.

Signed-off-by: Andrew Chronister <chr@chronal.net>
2019-02-18 15:38:24 -08:00
Bastian 951f0fc816 Fix error if topicEvents is undefined
Signed-off-by: Bastian <matrix@noxware.de>
2019-02-06 20:10:56 +01:00
Bastian aa0ae88076 Replace QuestionDialog with InfoDialog
Signed-off-by: Bastian <matrix@noxware.de>
2019-02-06 19:43:59 +01:00
Bastian 23971b3d0d Refactor to use HtmlUtils for linkifying and sanitizing
Signed-off-by: Bastian <matrix@noxware.de>
2019-01-31 22:36:08 +01:00
Bastian 8273662500 Replace QuestionDialog with InfoDialog
Display a default message if no room topic is present

Signed-off-by: Bastian <matrix@noxware.de>
2019-01-31 18:00:37 +01:00
Bastian 135af401f7 Merge branch 'develop' into boeserwolf/get-set-topic 2019-01-30 14:21:58 +01:00
Bastian bc6d13e768 Extend slash command '/topic' to display the room topic
If no <topic> is provided, the command will display a modal dialog containing
the sanitized and linkified room topic. This is just adding some juice to make
reading long room topics more convenient.
2019-01-30 12:18:54 +01:00
Travis Ralston 9b6ef8af72 Add an /upgraderoom command to make upgrading easier for development 2019-01-17 15:59:05 -07:00
Christopher Medlin e102000e58 Change to 'roomname' instead of 'name'. 2019-01-04 11:29:51 -08:00
Christopher Medlin c89b6e1e27 Add slash command for changing room name
Signed-off-by: Christopher Medlin <christopherjmedlin@protonmail.com>
2019-01-03 15:42:17 -08:00