Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nheko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
nheko
Commits
0db4d71e
Commit
0db4d71e
authored
4 years ago
by
Nicolas Werner
Browse files
Options
Downloads
Patches
Plain Diff
Prevent edits of unsent messages
parent
2a5e20dc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#612
passed
4 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/timeline/TimelineModel.cpp
+3
-0
3 additions, 0 deletions
src/timeline/TimelineModel.cpp
src/timeline/TimelineModel.h
+3
-0
3 additions, 0 deletions
src/timeline/TimelineModel.h
with
6 additions
and
0 deletions
src/timeline/TimelineModel.cpp
+
3
−
0
View file @
0db4d71e
...
...
@@ -1536,6 +1536,9 @@ TimelineModel::formatMemberEvent(QString id)
void
TimelineModel
::
setEdit
(
QString
newEdit
)
{
if
(
edit_
.
startsWith
(
'm'
))
return
;
if
(
edit_
!=
newEdit
)
{
auto
ev
=
events
.
get
(
newEdit
.
toStdString
(),
""
);
if
(
ev
&&
mtx
::
accessors
::
sender
(
*
ev
)
==
http
::
client
()
->
user_id
().
to_string
())
{
...
...
This diff is collapsed.
Click to expand it.
src/timeline/TimelineModel.h
+
3
−
0
View file @
0db4d71e
...
...
@@ -260,6 +260,9 @@ public slots:
QString
reply
()
const
{
return
reply_
;
}
void
setReply
(
QString
newReply
)
{
if
(
edit_
.
startsWith
(
'm'
))
return
;
if
(
reply_
!=
newReply
)
{
reply_
=
newReply
;
emit
replyChanged
(
reply_
);
...
...
This diff is collapsed.
Click to expand it.
Nicolas Werner
@deepbluev7
mentioned in commit
1acd4c26
·
3 years ago
mentioned in commit
1acd4c26
mentioned in commit 1acd4c26ef3dd4f90ed841c7266e86c215f6797d
Toggle commit list
Nicolas Werner
@deepbluev7
mentioned in commit
f0e1f140
·
3 years ago
mentioned in commit
f0e1f140
mentioned in commit f0e1f140b88e6512d3e37e39148823203ec7879c
Toggle commit list
Nicolas Werner
@deepbluev7
mentioned in commit
9f798e76
·
3 years ago
mentioned in commit
9f798e76
mentioned in commit 9f798e76ede3672d91276b1be7dd20de5459c9df
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment