This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 830
Replies #1741
Merged
Merged
Replies #1741
Changes from all commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
1c3d8cb
initial refactor of Replies to use `B` explicit over-the-wire format
t3chguy a15d024
Merge branches 'develop' and 't3chguy/m.relates_to' of github.com:mat…
t3chguy 1814546
fix Replies for e2e
t3chguy fbb950e
mass s/Quote/Reply
t3chguy 23c0daa
pass onWidgetLoad to fix console err for e2e
t3chguy 7425d01
tidy, improve error handling and improve Replies, run gen-i18n
t3chguy 25bc9cf
make spinner size more appropriate
t3chguy 7bf05b0
add unmounted guard
t3chguy aeedf48
fix weird `in` op behaviour with null
t3chguy 2e3cbb3
Merge branches 'develop' and 't3chguy/m.relates_to' of github.com:mat…
t3chguy 8062494
show replies in ReplyPreview
t3chguy cb293a8
reply and reply_preview only differ in whether they contain <Reply />
t3chguy f1a3592
fix 12/24h in Reply/ReplyPreview
t3chguy 0d6fc9b
fix Composer focus after twiddling with Replies
t3chguy 4c08c51
Reply; delay call to onWidgetLoad until after async setState completes
t3chguy 8fa56f8
update and improve comments
t3chguy 6510989
move unmounted init to willMount
t3chguy 34b427d
s/quote_event/reply_to_event/
t3chguy 7048d85
attach message_sent and replies to file uploads
t3chguy 90f9bad
s/Reply/ReplyThread/
t3chguy 665ddcc
restrict to m.text for now
t3chguy df56a67
Add reply fallback and run gen-i18n
t3chguy 3b02766
isHtml makes no sense if there is no formatted_body
t3chguy ed8f087
fix access of element [0] of array even though it sometimes does not …
t3chguy 023632e
only strip reply fallbacks if the lab is enabled
t3chguy 14f29e4
fix the bugs Tulir found - THANKS
t3chguy 0ed3563
clear quoting event even on send fail, as then we can click retry
t3chguy 6610734
implement desired m.room.message->m.text fallbacks
t3chguy b5ed08e
Merge
t3chguy fac89d9
Merge branch 'develop' into t3chguy/m.relates_to
t3chguy a390cec
fix missing null-guard
t3chguy 8fa4a52
Merge remote-tracking branch 'origin/t3chguy/m.relates_to' into t3chg…
t3chguy 80fbc75
Merge branches 'develop' and 't3chguy/m.relates_to' of github.com:mat…
t3chguy 9c2e3e2
clear reply_to_event at queue not send time
t3chguy 2854f2b
allow BigEmoji calc to ignore replies fallback if enabled
t3chguy 1d90835
Merge branches 'develop' and 't3chguy/m.relates_to' of github.com:mat…
t3chguy 9df2f7d
Add warning to Upload Confirm prompt if replying, as can't reply with…
t3chguy 4081321
run i18n prune and gen
t3chguy 871fee2
run i18n prune and gen
t3chguy f765db7
only clear reply_to_event if there was one to begin with
t3chguy c77807b
Merge branches 'develop' and 't3chguy/m.relates_to' of github.com:mat…
t3chguy 8b1e411
Merge branches 'develop' and 't3chguy/m.relates_to' of github.com:mat…
t3chguy a90bd6c
Allow collapsing ReplyThread from MessageContextMenu
t3chguy 58cd585
start of BigMerge fixup
t3chguy 06408f8
post BigMerge fixup - merge in stuff from riot-web PR
t3chguy 563fc9a
fix bad copy-paste from other diff
t3chguy 7e8288f
i18n-gen, i18n-prune
t3chguy 941bb94
fix reply fallback blunder
t3chguy d680d80
Merge branch 'develop' into t3chguy/m.relates_to
t3chguy 057815a
Reset accidental merge changes
t3chguy 5f920f7
Reset accidental merge changes 2.0
t3chguy 0f11bc6
undo code style change
t3chguy 71acf87
Add comments to _EventTile.scss
t3chguy 3de679b
Add comment to HtmlUtils.js
t3chguy 82d1179
Remove unused import
t3chguy 4a0a5c6
Merge remote-tracking branch 'origin/t3chguy/m.relates_to' into t3chg…
t3chguy 97fecae
improve wording
t3chguy 88f4891
improve comment
t3chguy 3ba9f56
get MatrixClient from context
t3chguy fdf63fd
replace concat on comment from review
t3chguy ca766df
call onWidgetLoad on componentDidUpdate
t3chguy 3050553
rename and change getInReplyTo
t3chguy 68dd57f
rename two methods
t3chguy 2e29a08
improve stripPlainReply comment and fix leading NewLine
t3chguy bbf4d3e
add comment
t3chguy 5bb15b1
simplify logic
t3chguy 407be88
add comment
t3chguy c00c52e
added another comment
t3chguy 4021fc0
re-arrange method order to group statics before instance methods
t3chguy 41af9f7
fix changed method name
t3chguy bbce6ee
update comment
t3chguy f0bd4a5
Refactor tests to understand sendMessage instead of send{Text,Html}Me…
t3chguy 11ae080
re-order ReplyThread methods for readability
t3chguy db55f87
avoid `.done` and `.then` anti-pattern
t3chguy ec4ec47
clean up EventTile:onWidgetLoad optional/required mess
t3chguy f2102e2
Merge branches 'develop' and 't3chguy/m.relates_to' of github.com:mat…
t3chguy 4c3f811
switch RoomView:uploadFile to async to clean up then/catch handling
t3chguy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
Copyright 2018 Vector Creations Ltd | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
.mx_ReplyPreview { | ||
position: absolute; | ||
bottom: 0; | ||
z-index: 1000; | ||
width: 100%; | ||
border: 1px solid $primary-hairline-color; | ||
background: $primary-bg-color; | ||
border-bottom: none; | ||
border-radius: 4px 4px 0 0; | ||
max-height: 50vh; | ||
overflow: auto | ||
} | ||
|
||
.mx_ReplyPreview_section { | ||
border-bottom: 1px solid $primary-hairline-color; | ||
} | ||
|
||
.mx_ReplyPreview_header { | ||
margin: 12px; | ||
color: $primary-fg-color; | ||
font-weight: 400; | ||
opacity: 0.4; | ||
} | ||
|
||
.mx_ReplyPreview_title { | ||
float: left; | ||
} | ||
|
||
.mx_ReplyPreview_cancel { | ||
float: right; | ||
cursor: pointer; | ||
} | ||
|
||
.mx_ReplyPreview_clear { | ||
clear: both; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm really not sure that this should be part of sanitising. The quoted text does not threaten the security of the app.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure where better to put this, technically this method is not specific to sanitising, its just
turn a matrix event body into html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, you're totally right.