Summary: | KTP ContactsModel has repeated roleNames | ||
---|---|---|---|
Product: | [Unmaintained] telepathy | Reporter: | Aleix Pol <aleixpol> |
Component: | libktelepathy | Assignee: | Telepathy Bugs <kde-telepathy-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | kde, mklapetek |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | Future | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/telepathy-common-internals/8f2ceb81c1fdc8a11993175eab4c4aa6c4c48ce7 | Version Fixed In: | 0.6.0 |
Sentry Crash Report: |
Description
Aleix Pol
2012-12-18 05:38:21 UTC
For reference, here's the full code piece roles[CurrentPresenceRole] = "presence"; roles[CurrentPresenceTypeRole] = "presenceType"; roles[CurrentPresenceStatusRole] = "presenceStatus"; roles[CurrentPresenceStatusMessageRole] = "presenceStatusMessage"; roles[RequestedPresenceRole] = "requestedPresence"; roles[RequestedPresenceTypeRole] = "requestedPresenceType"; roles[RequestedPresenceStatusRole] = "requestedPresenceStatus"; roles[RequestedPresenceStatusMessageRole] = "requestedPresenceStatusMessage"; roles[ConnectionStatusRole] = "connectionStatus"; roles[ConnectionStatusReasonRole] = "connectionStatusReason"; roles[AliasRole] = "aliasName"; roles[AvatarRole] = "avatar"; roles[PresenceRole] = "presence"; roles[PresenceIconRole] = "presenceIcon"; roles[PresenceStatusRole] = "presenceStatus"; roles[PresenceTypeRole] = "presenceType"; roles[PresenceMessageRole] = "presenceMessage"; The presence on top is account presence, the presence towards bottom is contact presence (the model mixes accounts with contacts). We don't need half of these roles anyway and should return KTp::Presence where possible. ...also the license header is wrong, I'm sure I didn't write this model. You didn't. It's from Tp-Qt4-Yell. It's a bug that will be going away with my new models. If you want an immediate fix, remove the top "presence" as no-one uses it. Git commit 8f2ceb81c1fdc8a11993175eab4c4aa6c4c48ce7 by Martin Klapetek. Committed on 18/12/2012 at 12:53. Pushed by mklapetek into branch 'master'. Rename clashing role names FIXED-IN: 0.6 M +4 -4 KTp/Models/contacts-model.cpp http://commits.kde.org/telepathy-common-internals/8f2ceb81c1fdc8a11993175eab4c4aa6c4c48ce7 |