|
|
@ -90,7 +90,9 @@ models.service('models', ['$rootScope', '$filter', 'bufferResume', function($roo |
|
|
|
// There are two kinds of types: bufferType (free vs formatted) and
|
|
|
|
// There are two kinds of types: bufferType (free vs formatted) and
|
|
|
|
// the kind of type that distinguishes queries from channels etc
|
|
|
|
// the kind of type that distinguishes queries from channels etc
|
|
|
|
var bufferType = message.type; |
|
|
|
var bufferType = message.type; |
|
|
|
var type = message.local_variables.type; |
|
|
|
|
|
|
|
|
|
|
|
// If type is undefined set it as other to avoid later errors
|
|
|
|
|
|
|
|
var type = message.local_variables.type || 'other'; |
|
|
|
var indent = (['channel', 'private'].indexOf(type) >= 0); |
|
|
|
var indent = (['channel', 'private'].indexOf(type) >= 0); |
|
|
|
|
|
|
|
|
|
|
|
var plugin = message.local_variables.plugin; |
|
|
|
var plugin = message.local_variables.plugin; |
|
|
@ -98,6 +100,9 @@ models.service('models', ['$rootScope', '$filter', 'bufferResume', function($roo |
|
|
|
|
|
|
|
|
|
|
|
var pinned = message.local_variables.pinned === "true"; |
|
|
|
var pinned = message.local_variables.pinned === "true"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// hide timestamps for certain buffer types
|
|
|
|
|
|
|
|
var hideBufferLineTimes = type && type === 'relay'; |
|
|
|
|
|
|
|
|
|
|
|
// Server buffers have this "irc.server.freenode" naming schema, which
|
|
|
|
// Server buffers have this "irc.server.freenode" naming schema, which
|
|
|
|
// messes the sorting up. We need it to be "irc.freenode" instead.
|
|
|
|
// messes the sorting up. We need it to be "irc.freenode" instead.
|
|
|
|
var serverSortKey = plugin + "." + server + |
|
|
|
var serverSortKey = plugin + "." + server + |
|
|
@ -365,6 +370,7 @@ models.service('models', ['$rootScope', '$filter', 'bufferResume', function($roo |
|
|
|
getHistoryDown: getHistoryDown, |
|
|
|
getHistoryDown: getHistoryDown, |
|
|
|
isNicklistEmpty: isNicklistEmpty, |
|
|
|
isNicklistEmpty: isNicklistEmpty, |
|
|
|
nicklistRequested: nicklistRequested, |
|
|
|
nicklistRequested: nicklistRequested, |
|
|
|
|
|
|
|
hideBufferLineTimes: hideBufferLineTimes, |
|
|
|
pinned: pinned, |
|
|
|
pinned: pinned, |
|
|
|
queryNicklist: queryNicklist, |
|
|
|
queryNicklist: queryNicklist, |
|
|
|
}; |
|
|
|
}; |
|
|
|