Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RocketChatMobileEngine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
hosting
chat
RocketChatMobileEngine
Commits
cec2204b
Commit
cec2204b
authored
6 years ago
by
Armin Felder
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into iosWS
parents
9e0b4d1e
5948f653
Branches
removeexecutionPolicy
Branches containing commit
No related tags found
1 merge request
!124
iremoved specil ios case as it now works
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CustomModels/channelmodel.cpp
+1
-1
1 addition, 1 deletion
CustomModels/channelmodel.cpp
api/meteorddp.cpp
+1
-1
1 addition, 1 deletion
api/meteorddp.cpp
container/sortedvector.cpp
+2
-4
2 additions, 4 deletions
container/sortedvector.cpp
engine.pro
+1
-1
1 addition, 1 deletion
engine.pro
with
5 additions
and
7 deletions
CustomModels/channelmodel.cpp
+
1
−
1
View file @
cec2204b
...
...
@@ -170,7 +170,7 @@ bool ChannelModel::addChannelsSlot(const QVector<QSharedPointer<RocketChatChanne
beginResetModel
();
for
(
const
auto
&
channel
:
pChannels
){
if
(
!
channel
.
isNull
()
&&
channel
->
getRoomId
()
!=
""
&&
!
duplicateCheck
.
contains
(
channel
->
getRoomId
()
)
)
{
//
connect( channel.data(), &RocketChatChannel::messageAdded, this, &ChannelModel::onNewerMessage, Qt::UniqueConnection );
//connect( channel.data(), &RocketChatChannel::messageAdded, this, &ChannelModel::onNewerMessage, Qt::UniqueConnection );
connect
(
channel
.
data
(),
&
RocketChatChannel
::
unreadMessagesChanged
,
this
,
&
ChannelModel
::
onUnreadMessageChanged
,
Qt
::
UniqueConnection
);
connect
(
channel
.
data
(),
&
RocketChatChannel
::
dataChanged
,
this
,
&
ChannelModel
::
onDataChanged
,
Qt
::
UniqueConnection
);
connect
(
channel
.
data
(),
&
RocketChatChannel
::
channelDeleted
,
this
,
&
ChannelModel
::
onDeleted
,
Qt
::
UniqueConnection
);
...
...
This diff is collapsed.
Click to expand it.
api/meteorddp.cpp
+
1
−
1
View file @
cec2204b
...
...
@@ -43,7 +43,7 @@ void MeteorDDP::init( const QString &pUri )
if
(
unsecure
)
{
protocol
=
QStringLiteral
(
"ws://"
);
}
QUrl
wsUri
=
QUrl
(
protocol
+
pUri
+
QStringLiteral
(
"/websocket"
)
);
qDebug
()
<<
wsUri
;
qDebug
()
<<
"meteor init"
;
...
...
This diff is collapsed.
Click to expand it.
container/sortedvector.cpp
+
2
−
4
View file @
cec2204b
...
...
@@ -45,14 +45,12 @@ int SortedVector<T>::insertSort( const QSharedPointer<T> &pointer )
template
<
typename
T
>
int
SortedVector
<
T
>::
findInsertPosition
(
const
QSharedPointer
<
T
>
&
pointer
)
const
{
int
row
=
-
1
;
auto
elementSmallerThanNew
=
std
::
lower_bound
(
this
->
begin
(),
this
->
end
(),
pointer
,
[](
const
QSharedPointer
<
T
>
&
first
,
const
QSharedPointer
<
T
>
&
second
)
->
bool
{
return
(
*
first
)
>
(
*
second
);
return
(
*
first
)
<
(
*
second
);
}
);
r
ow
=
elementSmallerThanNew
-
this
->
begin
();
r
eturn
elementSmallerThanNew
-
this
->
begin
();
;
return
row
;
}
template
<
typename
T
>
...
...
This diff is collapsed.
Click to expand it.
engine.pro
+
1
−
1
View file @
cec2204b
TEMPLATE
=
lib
QT
+=
core
network
websockets
sql
concurrent
CONFIG
+=
c
++
1
7
static
CONFIG
+=
c
++
1
4
static
SOURCES
+=
api
/
meteorddp
.
cpp
\
api
/
restapi
.
cpp
\
...
...
This diff is collapsed.
Click to expand it.
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